Joe Root's century could not save England from an early exit in Pakistan