Ben Duckett reeled off a rapid half-century as England began their response to Pakistan’s first-innings score of 366 on day two of the second Test.