Here's how it works:
* The Sun's Mass: The Sun is incredibly massive, which means it has a strong gravitational pull.
* Attraction: This pull of gravity attracts all the planets towards the Sun.
* Orbital Velocity: Planets are also moving at a high velocity, traveling in a nearly circular path around the Sun. This velocity is just right to balance the Sun's gravitational pull. If the planets were slower, they would fall into the Sun. If they were faster, they would fly off into space.
Think of it like a ball on a string. You swing the ball, and the tension in the string keeps it moving in a circle. The Sun's gravity acts like the string, pulling the planets towards it and keeping them in their orbits.