Sri Lanka were 5-228 in their second innings at stumps on the third day of the final Test in Pallekele on Sunday.
Skipper Angelo Mathews was unbeaten on 77 and Dinesh Chandimal was on 39, with the hosts leading by 291 runs with five wickets in hand.
The tourists added six runs to their overnight score of 9-209 before being dismissed for 215 in the second over of the morning. Sarfraz Ahmed remained unbeaten on 78.
Sri Lanka had scored 278 in their first innings.
The series is tied at 1-1 after Pakistan won the first Test in Galle by 10 wickets and Sri Lanka took the second in Colombo by seven wickets.