How the electric water heater and stove works?
The outside of the element is a metal tube, which must be earthed for safety.  Inside that is a length of resistance wire, such as a nichrome alloy.  The gap between the resistance wire and the outer tube is filled with heatproof mineral insulation.

As the element gets old, the outer tube can develop holes, letting water in.  At this point, the element needs replacing.