There are various forms of energy like kinetic energy, potential energy, heat or thermal energy, radiant energy, electrical energy and chemical energy.
All these forms of energy are interconvertible. For example, a body at very high level possesses higher potential energy. When it falls down, potential energy is converted into kinetic energy.
Falling of water from high level is used to drive turbines converting potential energy into kinetic energy which is further converted into electrical energy.
In galvanic cells, chemical energy is converted into electrical energy.
In electrolytic cells, chemical energy is converted into electrical energy. But during interconversion, the energy can neither be created nor destroyed, and there is a conservation of energy.