Batteries

How do batteries store energy? Do all batteries store energy the same way?