Messi scored the first and third goals on Tuesday and set up Ivan Rakitic for the second on in a game in which Ousmane Dembele made his first start after becoming the club's record signing, reports Xinhua news agency.