Stokes’ role becomes clear as England edge into semi-finals