Water damage grows by the minute, and most of what limits it happens before a plumber arrives. This is the order to work in.
1. Stop the water
Fixture shut-off first. If the leak is at a toilet, sink or appliance, close the small valve under or behind it (turn clockwise).
Main shut-off if you cannot isolate it. In many houses it is where the water line enters: a basement wall, a utility room, a garage, or an outdoor box near the street meter. In apartments it may be a valve in a closet or behind an access panel. Find yours before you ever need it.
Open a low faucet afterwards to drain pressure from the lines.
2. Make it safe
If water is near outlets, appliances or the electrical panel, do not walk through it. Switch off the affected circuits at the panel only if you can reach the panel while standing somewhere dry.
If the main is off for a long time, turn a tank water heater to its vacation or pilot setting (gas) or switch off its breaker (electric).
3. Limit the damage
Move furniture, rugs and electronics out of the water; put foil or blocks under furniture legs that cannot move.
Mop and towel up standing water, run fans, and open windows if the weather allows.
Catch active drips from a ceiling with a bucket; a bulging ceiling can be relieved by a small hole at the lowest point, with a bucket under it.
4. Document before cleanup goes far
Photograph and video the source, the water level and every damaged item. Insurers usually want this before repairs.
Keep the failed part (split fitting, burst supply hose) if you can.
5. Call the right person
A licensed plumber repairs the pipe; a water-damage restoration company dries the structure. For a frozen pipe that has not burst yet, keep the faucet open and warm the pipe gently; never use an open flame.