How does GPS tracking actually work?

How does GPS tracking actually work?