No, Earth's magnetic field did not collapse for 2 hours on April 23. The erroneous story, which is still spreading, originated with a glitch in a computer simulation.
Gravity does far more than make things fall down. It governs the motion of planets around the sun, holds galaxies together and determines the structure of the universe.