England put a halt to their torrid one-day international record as they claimed a five-wicket win over Sri Lanka to take their three-match ODI series to a decider in Colombo.