Root hits century in England's win