Year/Model? Age of battery?
Sounds like weak battery. First thing is to fully charge battery, and if necessary load test.
If it's not the battery, next look for loose or corroded connections (especially battery cables, starter cable, ground strap).
If it's not the battery or main cables, look at switches, relays etc.
But this sounds like you drained your battery or have a bad battery.