Ben Stokes sent his bat into low-earth orbit as he was stumped in England's second Test loss to Pakistan.