If you didn't have a chance to turn off the gas before the flood, turn it off. The gas control valve must be turned off. Once it is completely dry, allow the water heater to sit.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.