When two bodies interact, the action and reaction forces come into action. Even though their magnitude are same and their direction are opposite, their effects do not get cancelled because these action and reaction forces do not act on the same body.