What did people use before batteries were invented?

3 answers

They didn't use electricity.

Check the history of batteries.

http://inventors.about.com/library/inventors/blbattery.htm
candles, kerosene lamps, windmills and waterfall wheels to turn machines
you can find more if you search the internet