Mohammad Rizwan won the toss as Pakistan opted to bowl in the second ODI against Australia in Adelaide.
England vs Pakistan: Haris Sohail, Pakistan's middle-order batsman, will undergo an MRI scan on Tuesday after feeling "slight pain" in his right leg, said Pakistan Cricket Board.
Mohammad Amir and Haris Sohail withdrew themselves from the Pakistan squad for their England tour due to personal reasons.
Pakistan reached their target off the first ball of their final over, finishing on 241/4.
According to a journalist, Haris Sohail looked exhausted during his course of play against South Africa and should have scored his century.
South Africa's fifth defeat in seven World Cup matches confirmed their embarrassingly early exit, with matches against Sri Lanka and Australia still to play.
Australia's resurgence could not have been more perfectly timed as they defend their World Cup title in England in two months.
Aaron Finch's match-winning knock overshadowed Haris Sohail's maiden one-day hundred (101 not out) which helped Pakistan to 280-5 in their 50 overs.
New Zealand, who lead the series 1-0, trail Pakistan by 394 runs with all ten wickets intact.
Azhar Ali and Haris Sohail added 126 for the third wicket as Pakistan ended Day 1 with 207 runs for the loss of four wickets.