England 6-4 to win opening Test after Root century