Babar Azam scored a second successive hundred while Shadab Khan produced career-best bowling and batting figures to help Pakistan beat Sri Lanka by 32 runs in the second one-day international in Abu Dhabi on Monday.
Babar hit a fighting 133-ball 103 while Shadab scored a career-best 52 not out to lift Pakistan from a struggling 79-5 to 219-9 off their 50 overs.
Shadab then returned his best figures of 3-47 with the ball to dismiss Sri Lanka for 187 all out in 48 overs, despite Upul Tharanga's 112 not out.
Victory gives Pakistan a 2-0 lead in the five-match series while this becomes Sri Lanka's ninth defeat in a row.
Pakistan won the toss and batted first, finding the going tough as they were reduced to 79-5, but Azam and Shadab led the fightback.
The 23-year-old Babar and Shadab, who turned 19 earlier this month, produced a match-turning 109-run seventh wicket stand which helped Pakistan reach 291-9 on a sluggish deck at the Sheikh Zayed Stadium.
Azam followed up his 103 which anchored Pakistan's 83-run win in the first game in Dubai on Friday by once again anchoring the innings, bringing up his seventh one-day hundred off 130 balls - his fourth this.
Shadab, who scored 14 not out in his only previous innings, played a support role during which he hit just one boundary off 68 balls.
In reply, Sri Lanka skipper Tharanga became the first Sri Lankan and 11th batsmen in the one-day history to carry his bat through a complete innings with a fighting 144-ball 112 not out with his 15th ODI century.
Once paceman Junaid Khan removed Niroshan Dickwella for three in the third over, spinners Shadab, Shoaib Malik (1-17) and Mohammad Hafeez (1-24) rocked the Sri Lankan batting with regular wickets.
Tharanga and Jeffrey Vandarsay (22) fought back for the visitors to record a fighting 76-run eighth wicket stand, but it wasn't enough.
Dropped twice on 13 and then on 20, Tharanga stood alone as Sri Lanka needed 51 off the last five overs but the last two batsmen were run out as he was left stranded.
Pakistan now lead the five-match series 2-0 with the remaining matches played in Abu Dhabi (October 18) and Sharjah (October 20 and 23). The two teams will also play three Twenty20 internationals with the first two in Abu Dhabi (October 26 and 27) and the last in Lahore (October 29).