Water on the floor is a symptom with several possible sources, and the source decides whether the answer is a fifteen-minute part or a new heater. Finding it is the first job.
Where the water comes from
The tank shell. Water at a seam, rust streaks down the side, or dampness spreading from under the insulation. This is the one that ends a tank's life.
The relief valve. A discharge at the valve or its pipe, often intermittent and often hot. Causes include thermal expansion, high inlet pressure or a failed valve.
Fittings and unions. Water at the inlet or outlet connection, especially after recent work, and often a matter of a failed washer or a joint that was never tight.
The element gasket. On electric units, water at the element plate, which can look like a tank leak from above but is a gasket and element job.
The drain valve. A dripping drain that will not reseat, common on older tanks that have not been flushed in years.
What is repairable
Valves, gaskets, fittings, drains, elements and relief valves are all replaceable parts. A leak from any of those is a repair, and the job usually includes checking why it failed: a relief valve that keeps opening is telling you something about pressure or expansion, and replacing the valve without asking why is how the same leak returns.
A tank shell that has rusted through or split is not repairable. The steel is perforated and the lining is gone.
The damage that happens while you wait
Water near the base of a heater soaks the pan, the floor and the framing. In a house that is empty for weeks, a slow leak can run for a long time before anyone sees it, and the resulting rot and mould can cost more than the heater.
On this corridor, that is the argument for closing the inlet valve when a leak is found and for checking the pan on arrival at a seasonal property.
Immediate steps
Close the cold-water inlet valve on top of the tank. Turn off the power at the breaker, or set the gas control to off. If the water is reaching electrical parts, stay clear of standing water and cut the power at the main. Then call with the address and where the water appears to be coming from.
Replacement as the outcome
When the shell has failed, replacement is the answer, and in unincorporated Tuolumne County it is permitted work. The replacement page covers the permit, the inspection items and what the swap involves.