An electric heater has fewer failure points than a gas one, which makes the diagnosis cleaner: the circuit, the elements, the thermostats, the high-limit, and the water inside the tank.
The breaker's testimony
Trips instantly on reset: a shorted element or a wiring fault, and it should stay off until tested.
Holds, but no hot water: the element circuit, a thermostat, or a high-limit that has cut out.
Trips after a while rather than immediately: often a failing element that shorts once it heats.
High-limit and thermostats
A high-limit that has opened did so because the tank overheated. Usually a thermostat stuck closed. Resetting it without diagnosis is a repair that ends when it opens again.
Two-element tanks have an upper and a lower thermostat, and the upper feeds the lower. Testing them independently is how a wrong part gets ordered.
Sediment, in a building nobody is watching
Where water comes from a well, sediment settles in the base of the tank and around the lower element. In a seasonal building, that happens during the months the water is not being used, which is why the first weekend of a season is when the heater underperforms.
Flushing is the whole preventive answer. An element replaced into a scaled tank is a temporary repair.
Voltage and the building
Long service runs, an older panel, or a circuit sized for a smaller unit all show up as a heater that never keeps up. Measuring voltage under load distinguishes an appliance fault from a supply problem, and the difference decides what gets replaced.
The outcome
Where the tank is sound, the repair is a part: element, thermostat, high-limit, gasket. Where the tank is scaled, corroded and leaking, the quote should say so plainly rather than selling a part into a failing shell.