Stokes tore his left hamstring in the final Test against New Zealand