For the heater to function effectively, there's an anode, a dip tube that takes the cold unheated water to the bottom of the heater, a metal rod which corrodes to protect other metal components, besides a drain valve. If any of these parts fail to function properly, the hot water heater gives rise to problems.