They didn't use electricity.
Check the history of batteries.
http://inventors.about.com/library/inventors/blbattery.htm
What did people use before batteries were invented?
3 answers
candles, kerosene lamps, windmills and waterfall wheels to turn machines
you can find more if you search the internet