The Sun's gravity pulls the planets in orbit around it, and some planets pull moons in orbit around them. Even spacecraft are in motion through the solar system, either in orbit around the Earth or Moon, or traveling to further worlds, because of gravitational forces.