A GFCI outlet watches the current going out and coming back. If some of it leaks, such as through water or a person, it cuts the power very quickly.
They belong where water and electricity meet: kitchens, bathrooms, laundry rooms, garages, unfinished basements and outdoors.
Press Test. The outlet should click off. Press Reset to turn it back on. If it won't trip or won't reset, replace it.
One GFCI can protect several regular outlets after it. If a bathroom outlet is dead, look for a tripped GFCI in another bathroom or the garage.
GFCI replacement starts at $125 for the first device.