Check out your sensor or heater control board.
What seems to be happening is the heater is only going on for a minute or two at a time. If the sensor is not giving the correct signal, or a marginal signal, the control board will turn off the gas after a few minutes.