Stop the water, then call
Water from a failed heater in The Oaks soaks into the slab, the framing and the drywall behind it while someone stands looking at it. The useful actions take a minute.
Close the cold inlet valve on top of the tank — if it will not turn, the property's main shut-off. Shut the fuel: the gas valve on the supply pipe, or the breaker. Move anything stored around the unit off the floor. Do not cap the relief valve to stop a drip; it is the safety device.
What can wait
No hot water, no leak, no gas smell is usually a part, and a part at eleven at night is not worth an emergency rate. If the pilot will not hold, the breaker trips straight back, or the display is dead, morning is fine.
What cannot
Running water that will not stop, a smell of gas — leave the building and call the utility from outside — a commercial kitchen or laundry with no hot water during service, or a panel that smells hot after repeated trips.
After the water is off
The repair is planned from what the unit is doing: a failed shell means a replacement, a valve or fitting means a repair. Either way, the pressure is off once the inlet is closed.