Unscrewing the old valve and screwing on a new ... If you have a gas water heater, turn the knob to the 'pilot' position. Shut off the circuit breakers to an electric water heater.