This is from the AHRI website, that A.O. Smith , Bradford White, and Rheem point to regarding water heaters in a flood.
Water Heating Systems
Whether your water heater is gas-fired, oil-fired or electric, if it was exposed to flood water, the unit should be replaced. A new water heater is a relatively small investment, and replacing it is fairly easy to do.
In a gas unit, valves and controls will likely corrode. In an electric unit, the thermostat and controls will likely corrode. In both types, the insulation surrounding the unit will be contaminated and will be nearly impossible to disinfect. Additionally, the insulation would take a long time to dry, leading to corrosion of the tank from the outside.
Even if water heater components have been cleaned and the unit seems to operate properly, parts may corrode in the future. Both gas and electric water heaters have a pressure relief valve that can corrode and stick after being exposed to flood water. Be sure, therefore, to replace this valve as well.