England beats Pakistan in 4th ODI