Action and reaction are equal and opposite according to Newton’s third law of motion. Action and reaction are acting on two different bodies.
When air is thrown by fan placed on the same boat on which sail is attached, then action and reaction are on the same boat. Hence motion of the boat will not take place.