Gas units fail at the connection
A gas water heater needs three things to happen in order: the gas valve opens, the igniter or pilot lights it, and a sensor confirms there's a flame before the valve stays open. If that sensor doesn't see a flame fast enough, it shuts the gas back off, even if the igniter is working fine. That's why a gas unit can click or spark and still never give you hot water. It's rarely the gas valve itself. More often it's the thermocouple or igniter wearing out, or dust and corrosion keeping the flame sensor from reading the flame correctly.
















