Tried replacing the water valve with no luck. Then I remembered that no water came out of the line from the water tank when I changed the water valve. So I pulled out the water tank and found it had frozen solid and ruptured the line between the two tanks. I replaced the heater element and the tank assembly and it all works perfectly now.