England to replace Stokes with Finn for 3rd Pakistan test