Coal is burned to heat water (in a very large boiler). The water is heated to steam. The steam is then used to turn a steam turbine. The turbine turns a generator, producing electricity!