An interactive satellite fix loads here. It needs JavaScript; the sections below explain everything it shows.
Each satellite carries a very accurate clock and broadcasts its own position and the time. The signal takes a fraction of a second to arrive; multiply that delay by the speed of light and you have the distance to that satellite. Knowing your distance from one satellite puts you somewhere on a sphere round it. With three you are at the point where three spheres meet.
The receiver's own clock is far less accurate than the satellites', so it uses a fourth satellite to work out its clock error as well. That is why a receiver needs at least four satellites for a fix, and why GPS also gives very accurate time.
GPS is the American system. There are others: GLONASS (Russia), Galileo (Europe) and BeiDou (China). Together they are called GNSS, global navigation satellite systems, and modern receivers can use several at once.
The GPS receiver feeds its position to the ECDIS, the radar, the AIS, the GMDSS radio equipment, so a distress alert carries the position, and the voyage data recorder. Like the gyro, one fault can affect them all.