Proteas beat England, end five-match losing streak