Answer:
The sun's gravity pulls the planet toward the sun, which changes the straight line of direction into a curve.
Step-by-step explanation:
This keeps the planet moving in an orbit around the sun. Because of the sun's gravitational pull, all the planets in our solar system orbit around it.