England all-rounder Ben Stokes will miss the third Test against Pakistan because of a torn calf muscle.