Washington Sundar, coming in place of Kuldeep Yadav, took 7 for 59 and spun New Zealand out for 259.