A gas heater tells you what is wrong if you watch the flame. That is the advantage of the fuel, and the reason most gas calls are narrowed before anyone arrives.
Lights, then dies
The pilot catches, you hold the knob, you release it, and the flame goes out. That is the flame-proving part — thermocouple or sensor — failing to tell the gas valve the flame is real, so the valve shuts as designed. It is a worn component rather than a dead heater, and it is the most common gas fault on an older tank.
Will not light at all
Check one thing first: is the stove or furnace also out? If every gas appliance is cold, the problem is upstream, and the utility owns it. A blocked orifice or a failed valve is the heater-side version.
What colour tells you
A flame that burns clean is short, blue and firm at the burner. When it turns long, yellow or lifts off the ports, combustion is not completing, which puts carbon monoxide into the room rather than up the flue. Treat that as a stop-use finding: the appliance is switched off, not watched.
The flue constrains the repair and the replacement
The flue carries combustion gas out. A flue that is blocked, disconnected or undersized for the burner turns a functioning heater into a hazard, and the same flue limits what can replace the unit later. Both get considered together.
Sound that is not combustion
A tank that crackles and thumps as it heats is reporting a crust of minerals on its floor, with water boiling under the deposit. Nothing in the gas train is at fault, and no valve or orifice will quieten it — the tank has to be drained and cleared.
Three rules worth memorising
If gas can be smelled, get everyone out and ring the utility — not a contractor first. If the heater has been under water, it is not relit until it has been inspected. If the flame is the wrong colour, the heater stays off until the exhaust path has been proved.