Pakistan ended the second day at Lord’s with a 166-run lead and two first-innings wickets in hand