A thermostat decides when the heater runs and how hot it gets. When it drifts or fails, the water is cold, lukewarm or too hot — and the part is cheap enough that guessing is tempting. Testing first is what makes the repair worthwhile.
Two-element electric units
The tank carries two controls, each governing one element, and the upper one is wired as the gatekeeper: it brings the top element on first and only passes current to the lower element once the top of the tank is satisfied.
That wiring is what makes the symptoms predictable. A fault at the top control leaves the whole tank without heat, because the lower element never gets permission to run. A fault at the bottom leaves a tank that produces a hot first shower and then nothing. Both are proved at the terminals with the supply off, not inferred from the tap.
Gas tanks
On a gas unit, the temperature control is part of the gas control valve. There is no separate thermostat to swap, so a temperature fault is diagnosed as a valve or control problem. That is a different repair at a different cost.
Setting the temperature
About 120°F suits most households and slows mineral buildup in a hard-water city. A dishwasher without a booster heater may need 130–140°F. Households with immunocompromised occupants may consider 140°F with mixing valves at bathing taps, because the higher setting raises the scald risk.
The dial is not a thermometer. The water at the farthest tap is the measurement that matters.
Doing the swap in a closet
A closet install leaves little room above the access panel, so the cover comes off with a short tool and the control is tested before anything is ordered. The substitute is matched to the unit's rating plate and the element it serves. Because the tank is usually drained and refilled on these tall units, the air has to be out of the vessel and the element covered in water before the breaker is closed.
What the tap tells you
Lukewarm water throughout a tower apartment is as likely to be a riser losing heat or a unit undersized for the household as it is a failed control. Hot at the first draw and cold at the second points at storage. Measuring at the fixtures first keeps a working thermostat from being replaced to solve a plumbing problem. The thermostat test starts the diagnosis; it does not replace it.