Why action and reaction being equal and opposite do not cancel each other?

Action and reaction act on different bodies and not on the same body so they do not cancel each other. A wall sends back a ball which hits it, i.e., the ball acts on the wall and the wall reacts on the ball.