Answer:
Gravity
Earth would fly off into space in a straight line if the gravity
between Earth and the Sun ended
Step-by-step explanation:
The Earth's orbit is made through gravity and inertia. If gravity between the Sun and Earth had ended, inertia would make the Earth travel in a straight line because there is no gravity to pull it towards the sun and keep it in motion.