Even though they scored less runs but bowlers did a fantastic job because Pakistan also lost eight wickets and they left with only one ball in the innings means match was very interesting. As you said if they could manage to score another 20 runs then it would have been a different story completely. SL was not lucky to win the match, and they need to improve a lot in their batting.
Pakistan should consider themselves very, very lucky here. The last over was a treat to watch. Pakistan required eleven runs from the last four overs, and a dropped catch by Gunathilaka made all the difference. Sri Lanka gave a good account of themselves here.
I was watching this match and in last over I was sure its going to be Sri Lankan win as first ball played most of peoples was sure now no one can stop Sri Lankan from winning this match but Shadab's fourth ball wonder hit change all things very quickly its really one of interesting matches in this series