Each tower (or satellite) only tells you how far away you are, which puts you somewhere on a circle around it. Two circles cross at two points, and a third circle picks the right one. Solving the system of circle equations is how location services pin you down.