Pakistan captain Mohammad Rizwan, left, and Salman Agha scored centuries to power the home team's record chase to beat South…