Gas heating systems have been around for a very long time and have been used for years. Natural gas is often used.
As soon as a building is too cold, this is reported to the boilers. There, gas burns. This produces heat, which is then transferred to the radiators with water. The radiators warm the rooms and then the cold water flows back and it is heated again.