Here's a simplified explanation:
* Gravity is a force of attraction between any two objects with mass. The Sun has a massive amount of mass, so it exerts a strong gravitational pull on everything around it, including the planets.
* The planets are constantly moving. They are not just sitting still in space. Their forward motion, combined with the Sun's gravity, creates a constant "falling" towards the Sun, but they never actually hit it.
* This constant "falling" is what creates the orbit. Imagine throwing a ball horizontally. It will follow a curved path because of gravity. The faster you throw it, the further it will travel before hitting the ground. If you could throw it fast enough, it would never hit the ground at all, but instead, it would orbit the Earth.
This is similar to what happens with planets. They are moving fast enough, and the Sun's gravity is strong enough, that they are constantly falling towards the Sun but never actually hit it, creating a stable orbit.