Shutting off the gas and water to a failed water heater should be done with safety in mind. Here are the safest steps, in the proper sequence, to accomplish this:
Safety is of utmost importance when dealing with gas appliances and water heaters. If you are unsure about any of these steps or have concerns about gas safety, it is best to contact a qualified professional to handle the situation and address any potential issues with your water heater.