The One Direction member served as a judge on the show — which relies on chemistry to put a new band together without them ever meeting each other — with Kelly Rowland and Nicole Scherzinger