How are fossil fuels made into heat?

Fossil fuels (coal, oil and natural gas) are burned. The heat from the burning is used directly, or is used to produce electricity, which can then be used to generate heat.