New Zealand beat Sri Lanka by 5 wickets