How do the earth and the moon orbit the sun?
Earth pulls the moon towards it using gravitational pull/attraction, (because of the moons velocity it didn't crash into earth.)