Resilient England restrict Pakistan in second Test