Water heater emergencies are mostly about stopping water and removing a hazard. The appliance can be dealt with after that. Knowing the order of operations is what keeps a bad night from becoming a worse one.
First: stop the water
The cold inlet valve is usually on the pipe feeding the top of the tank. Turn it clockwise until it stops. On a leaking tank, that alone stops new water entering and limits how much reaches the floor.
If the leak is at a fitting rather than the tank, the same valve gives you room to put a container underneath and call. If water is anywhere near an electrical outlet, panel or appliance, do not reach into it.
Second: remove the energy
A gas unit has a valve on the supply pipe; turn it off if it is accessible without touching water or moving anything unsafe. An electric unit has a breaker at the panel. Shutting the energy off prevents the unit from heating an empty or drained tank, which can damage it further.
If you smell gas at any point, leave the building and call the gas utility from outside. Do not operate switches, do not light anything, and do not wait for a scheduled visit.
Third: describe it accurately
Tell the person on the phone where the water is coming from, what you have turned off, whether the unit is still heating, the fuel type and the unit's age. "Leaking from the bottom of the tank" and "leaking from a pipe above it" are different situations with different urgency.
What is not an emergency
No hot water with no leak is uncomfortable, not dangerous. A slow drip with a container under it, a noisy tank, or a pilot that keeps going out can wait for a scheduled visit. Treating those as emergencies does not get them fixed faster; it just adds pressure to a decision that is better made calmly.
When the unit cannot be saved
If the shell has failed, the emergency phase is water control and the next phase is replacement. The replacement page covers what that involves, including the California permit and seismic strapping. The repair page covers faults that are just parts.
Emergency calls are taken for the fourteen covered places. Say which one you are in, because coverage is a real boundary.