The earth is acted upon by the gravitational attraction of the sun. Why don't the earth fall into the sun?

The earth is orbiting round the sun in a stable orbit (nearly circular) such that the gravitational attraction of the sun just provides the centripetal force to the earth for its orbital motion so, net force on the earth is zero and consequently, the earth does not fall into the sun.