Babar Azam clinched his fifty with a six off Jack Leach on day three of the first Test against England in Rawalpindi.