Shut it off, then ring
Water from a failed heater in Stevenson Ranch spreads into slab, framing and drywall while somebody stands watching it. The useful steps take a minute.
Close the cold inlet on top of the tank, or the property's main shut-off if it will not turn. Shut the fuel — the gas valve on the supply pipe, or the breaker. Move stored items off the floor around the unit. Do not cap the relief valve to stop a drip.
What can wait until morning
No hot water, no leak, no gas smell is usually a part failure, and a part at midnight is not worth an emergency rate. If the pilot will not hold, the breaker trips straight back or the display is dead, daylight is fine.
What cannot wait
Running water that will not stop, any smell of gas — leave and call the utility from outside — commercial premises with no hot water during service, or a panel that smells hot after repeated trips.
After the water stops
The repair is planned from what the unit is doing: a failed shell means replacement, a valve or fitting means a repair. Closing the inlet is what turns an emergency into a decision.