When natural gas is used to heat water, it works kind of like a natural gas furnace, but for water. The natural gas burns and heats a component called a heat exchanger. The cold water comes into the water heater and goes around this heat exchanger. As it does, the water gets warm from the heat of the burning gas. Then, this hot water is sent to your taps or shower when needed.