To switch from a gas to electric water heater, start by capping the gas supply. Install your new electric unit in place. Then run an electrical circuit to the breaker panel.