As the ball moves on the table top, force of friction comes into play and it opposes the motion of the ball. Hence, the ball stops.
A ball moving on a table top stops, as the force of friction between the moving ball and the table top opposes the motion.