Turn off the stopcock. It's usually under the kitchen sink or where the pipe comes into the house.
If water runs towards a wall with a socket, switch off at the fuse box.
Photograph the wet wall and floor. Your insurer will want to see the damage before the repair.
“The costliest water is the water that runs till morning.”