Imagine you are on half a tandem bicycle. You are in a room with the chain of the tandem vanishing beyond the wall. You can't see, but clearly someone else is pedalling the thing as the pedals are rotating. Getting on it is tricky, as you have to rotate your feet at the right speed, but once you're on you can sit there and let it carry them round - or you can start applying pressure through your feet to do work and accelerate the chain system.
At this point you discover the thing on the other end of the chain is not a person but a 60Hz synchronous motor-generator. Congratulations, you are in sync with the grid and (when pushing on the pedals) contributing power.
(A corollary of this is that if your grid connection is down or the grid is split into two pieces, you can't start up again until you get a grid input to know you're in phase. See "black start" for details on this.)