An electric water heater works essentially the same way as a gas water heater. It brings cold water in through the dip tube (1) and heats it using the electric heating elements (2) inside of the tank. ... The only big difference is the water is heated by electric elements and is thus plugged into a power supply (9).