In with a shout: England bowled out Pakistan and survived a nervy final hour on day three of the final Test