It just moves forward. The moon isn’t stationary. It has inertia and no atmosphere in space to slow it down. It just goes. As it moves forward, the gravity of Earth tugs on it and it falls, but because it’s moving forward it misses Earth as it falls and goes around, again and again. That’s called an orbit.