Is there any chance that the force of gravity on earth will stop attracting things?
You seem to have curious dreams. What you are saying is whether the world and the universe could suddenly disappear. If the force of gravity stops attracting on earth, the earth will also not be attracted towards the sun and will go on without bending in an elliptical path and escape the solar system. If the mass of the sun does not produce a container through its gravity the sun would explode into a large fireball that would eventually cool.