In a thermal station, coal is used for the generation of electricity

In a thermal station, coal is used for the generation of electricity. Mention how energy changes from one from to the other before it is transformed into electrical energy ?

When coal is burnt, heat energy is produced which converts water into steam. This steam rotates the turbine and thus heat energy is converted into mechanical energy of rotation. The generator converts this mechanical energy into electrical energy.