Yes, Pakistan was so close and not able to win the game but as you said the batsmen has not worked with their full effort and that is why the Pakistan has lost the game but the good thing is Pakistani bowlers are back in order, the speed, the aggression. Everything is back !
I think if Pakistan would have score 10 runs more on their target then they win this game. They also lacked two of their main batsmen which include Iftikhar Ahmed and Fakhar Zaman. Iftikhar has been out of the team based on his performance and Fakhar Zaman with no reason or you can say its a political agenda behind this decision.