New Zealand beat Sri Lanka by 167 runs; level series

New Zealand have set the home team a target of 363 runs.