Gravitational force acting between earth and sun is balanced by the centrifugal force which acts in the opposite direction to the gravitational force, since these two forces are in equal in magnitude and acts in opposite direction i.e. they balance the effect of each other and therefor earth do not get clashed with sun.