New Zealand beat England by 17 runs via the Duckworth-Lewis-Stern method to level the three-match series in Cardiff.