Water where it should not be is the entire problem, and the response begins with two valves rather than with a diagnosis.
Close, then cut
The inlet at the tank stops new water entering. The fuel valve, or the breaker on an electric unit, stops the heat. Do those in that order and the situation stops getting worse.
Reading the wet patch
Rust and water at the foot of the tank is the vessel. A damp coupling is a joint. The drain is a part. A relief pipe that keeps running is pressure, temperature or a valve past its life. Water under the floor means following the pipework before blaming the appliance.
A corridor failure that imitates a heater
On parcels like these, a pump or a shared supply can fail in a way that reads as a water heater fault. If neither hot nor cold water runs, the appliance is innocent.
Ice
A split opens on a freezing night and shows itself at the thaw. Warm the area gently, keep water away from electrics, and expect a new unit if the tank or the exchanger cracked.
Gas
Leave the building, avoid switches, telephone from outside.
What can wait
A cold tap with water still running, a drip caught in a bucket, a sooty flame. Those belong on the repair page. A split shell belongs on the replacement page.