Mg is downward force and if upward force equal to mg is applied then both the forces cancel out each other and net force on the body is zero. That is net acceleration of the body is zero. But it doesn't mean velocity is zero. The body will move with constant velocity. Hence, body moves.