A canyon failure has a second clock on it: how long it takes anyone to reach the property. Shutting the water down is still the first move, but the access matters too.
Turn it off at the tank
Find where the cold supply enters the heater and close the valve there. That stops more water entering, and what is already inside drains away through the break. On a property supplied by a pump, shutting the pump as well is worth doing if the valve cannot be reached.
Then the heat
Gas or propane off at the appliance; the breaker for an electric unit. A heater that keeps firing while it empties can be ruined in an afternoon.
After a freeze
A split line or fitting often holds until the ice melts, then leaks. Warm the pipe gently, never with a flame, and keep water clear of outlets. A split in the tank or the exchanger means the unit is finished rather than repairable.
Propane, briefly
Smell propane and the job changes: out of the building, no switches, call the supplier or emergency services from outside.
Pump or heater
If cold water still runs, the appliance is at fault. If nothing runs at any tap, look at the pump, the pressure tank, the breaker or the supply. Calling that a heater problem wastes a trip up the canyon.
What waits for a normal visit
No hot water with the supply working, a drip in a bucket, a unit that refuses to light, a burner that wants cleaning. The repair page describes those. A failed vessel is a replacement.