Hehehe. I will give you one method, but I don’t recommend it normally. When I was 14 or so, I was working on a science fair project at my best friend’s house, in the basement. We needed to use some electric tool, a drill or a saw or something, and the nearest outlet was the old outlet that was screwed to a two foot piece of 2x4 (which was attached to nothing else. It was just a length of Romex coming out of the breaker box, to a loose outlet that was screwed to a board. Brilliant!). It was sitting on top of the water heater, and when I went to grab it, I hit it, and it fell to the ground, breaking off the flush valve. The water started coming out pretty quickly.
We both knew enough farmer plumbing and electrical to know to turn off the power at the breaker box, and to start looking for the main water shutoff into the house…and looking, and looking, and looking. For 20 some minutes we looked, all the while water poured into the basement. It was getting pretty deep, so my friend broke down and started calling around, to different family members. He couldn’t get either of his parents, but got an uncle who headed over. Meanwhile, his younger brother remembered that thier water was piped from next door (a country church), and was sort of a late addition (my friend’s family lived in what used to be the township schoolhouse, 1 or two rooms, and the original construction predated indoor plumbing, so everything was a bit oddly set up. Well, we went over to the church and found the valve, and finally were able to shut off water to the house.
There was, by this time, about 3-5 inches of water covering the whole basement floor, and just then, his parents came home from work. Well, they were very pleasant about it, all things considered (started laughing, actually). Gave us a scoop shovel, a shop vac, and a pail, and had us get out what we could. Luckily, it was an unfinished basement, so damage was minimal. The next year, they finished the basement, since the flooding had helped clean the floor.
Oh, and just as we were finishing up the cleanup, my friend’s dad came down to install the new drain valve on the hot water heater. He showed us the cold-water intake, and valve that would shut off the flow, which would have been helpful a few hours before. Good times.