How to make spheres bounce travel horizontally and bounce endlessly

Does the ball stop when it hits the wall?