According to the Law of Inertia, the Earth will stay in motion because it is already moving.
The sun's gravitational pull keeps the Earth from moving in a straight line.
The speed of the Earth's motion keeps it from crashing into the sun.
All of the above.