Most tanks here are 40 or 50-gallon gas units in closets, with electric units in the attached stock. The parts are familiar; the placement makes the discharge the recurring issue.
What wears
The relief valve is built to open at a stamped pressure and later weeps or seizes. The drain cock freezes in sediment. The top fittings corrode and send water tracking down the outside. The anode is spent so the wall is not. Electric side: elements and thermostats. Gas side: thermocouple, igniter, gas valve.
Pressure
A regulator closes the system, so expansion has one outlet. Frequent lifting is the system talking; an expansion tank and a regulator test answer it.
The discharge
In an interior closet there is no nearby outside wall, so the relief pipe has to be routed. It must finish outdoors at the required height in pipe no smaller than the valve outlet — the item most often found wrong.
The vessel
Water through a seam, the wall or the base ends it. Every other component can be swapped out; the only question is how many years remain.