The planets orbit the sun due to gravitational force of the sun on them which keep it in their orbits.
The first law of motion is also called Law of Inertia, the second law of motion is the Law of Mass and Acceleration, and the Third Law of Motion that have action and reaction forces.
The gravity of the Sun keeps the planets in their orbits. They stay and revolve in their orbits because there is no other force in the Solar System which can put pressure on them.
So we can conclude that planets orbit the sun due to gravitational force of the sun on them which keep it in their orbits.
Learn more about newton here: https://brainly.com/question/25545050