Babar Azam's patient unbeaten century guided Pakistan to a six-wicket victory over New Zealand on Wednesday and revived their hopes of reaching the Cricket World Cup semi-finals.
New Zealand, unbeaten in their first six games of the tournament, remained second in the standings behind Australia and should still make the last four comfortably while Pakistan are now only one point behind hosts England.
"Whenever we are in a corner we play our best, it was a great team effort," Pakistan captain Sarfaraz Ahmed said.
"All the bowlers bowled well and there was some of the finest batting I have ever seen. Babar played one of the best innings I have ever seen. They handled the pressure so well."
The match was delayed by overnight rain and New Zealand collapsed to 46-4 after deciding to bat.
Captain Kane Williamson steadied the ship with a gritty 41 before Jimmy Neesham and Colin de Grandhomme shared a sixth-wicket partnership of 132 which lifted the Black Caps to a respectable total.
Neesham struck three sixes and five fours in his unbeaten 97 and De Grandhomme made 64.
Pakistan opener Fakhar Zaman fell cheaply to Trent Boult and Imam-ul-Haq was brilliantly caught by a diving Martin Guptill off Lockie Ferguson for 19 but Azam and Mohammad Hafeez steered Pakistan to 110-2.
Hafeez departed for 32 but Haris Sohail joined Azam and the pair calmly added 126 to take their side to the brink of victory before Sohail was run out by Guptill for 68.
Azam held his nerve, however, and guided Pakistan to their target with five balls to spare, according to Reuters news agency.
The 1992 world champions play Afghanistan and Bangladesh in their last two group games and will be confident of making the last four while England will be sweating as they prepare for difficult matches against India and New Zealand.
"We are not thinking about 1992, we are going match by match," Sarfaraz said.
Williamson was not too despondent after his team's first loss of the tournament.
"The surfaces in the last three games have been difficult and we were outplayed on a tough surface by a strong side," he said.
"We were right in it but their batsmen played beautifully well and took the game away from us. There are so many games in the round robin you can't win them all."