If the head gasket has gone then one of the problems will be air will enter the cooling system. If air is entering the cooling system caused by a blown or leaking head gasket then is air is replacing the water would it first cause the heater to stop working.