Pakistan were 91-3 in reply, but a magnificent 260-run fourth wicket stand between Agha (134), who scored his maiden ODI ton, and Mohammad Rizwan (122 not out) took Pakistan to victory with six balls to spare.
Left-handed opening batter Ayub made a sparkling 101 off 94 balls in a Pakistan total of 308 for nine.
Pakistan narrowly lost by one wicket on Friday, their fourth straight defeat after two wins in six matches.
Pakistan were 91-3 in reply, but a magnificent 260-run fourth wicket stand between Agha (134), who scored his maiden ODI ton, and Mohammad Rizwan (122 not out) took Pakistan to victory with six balls to spare.
Left-handed opening batter Ayub made a sparkling 101 off 94 balls in a Pakistan total of 308 for nine.
Pakistan narrowly lost by one wicket on Friday, their fourth straight defeat after two wins in six matches.