Babar Azam’s hundred helped Pakistan inflict a first defeat on the Black Caps, boosting their semi-final hopes and turning up the heat on England