A cloud that is collapsing due to gravity is undergoing gravitational collapse. However, nothing in the universe is sitting absolutely still. Moons orbit planets. Planets orbit stars. Stars orbit the center of galaxies.
Galaxies orbit other galaxies.
This is what we term angular momentum. Angular momentum cannot be destroyed, although it can be transferred from one object to another. This is known as conservation of angular momentum . For planets, you recall Kepler's Second Law was his discovery that angular momentum is conserved. For the planets, as they go around the Sun, their masses don't change but their distances from the Sun do.