Solution:The gravitational force of attraction between the earth and the sun is balanced by the centripetal force. The centripetal force is responsible for keeping the earth in its orbit, constantly pulling it towards the sun.
According to Newton's law of motion any object moving in a circular path experience a centripetal force directed toward the circle. This force enables the earth to maintain its orbit path around the sun counteracting the pull of gravity.