England win test against Srilanka, level series by1-1