New Zealand was within grasp of a first test series win in England since 1999 after the home side collapsed in its second innings to 122-9 at Edgbaston on Saturday.

England was only 37 runs ahead at stumps with tailenders Olly Stone, 15 not out, and last man James Anderson, yet to score, in the middle.

More Images
New Zealand's Matt Henry celebrates the dismissal of England's Zak Crawley during the third day of the second cricket test match between England and New Zealand at Edgbaston in Birmingham, England, Saturday, June 12, 2021. (AP PhotoRui Vieira)

New Zealand was within grasp of a first test series win in England since 1999 after the home side collapsed in its second innings to 122-9 at Edgbaston on Saturday.

New Zealand's Neil Wagner, center without cap, celebrates with teammates the dismissal of England's Dan Lawrence during the third day of the second cricket test match between England and New Zealand at Edgbaston in Birmingham, England, Saturday, June 12, 2021. (AP PhotoRui Vieira)

The Black Caps’ first innings finished before tea on 388 for a lead of 85.

England's Dom Sibley, center, watches New Zealand's Daryl Mitchell, right, take the catch to dismiss him during the third day of the second cricket test match between England and New Zealand at Edgbaston in Birmingham, England, Saturday, June 12, 2021. (AP PhotoRui Vieira)

Neil Wagner, auditioning along with with Henry to play India in the final, got Ollie Pope lbw for 23 and Dan Lawrence caught behind for a duck in two overs.

New Zealand's Ajaz Patel, center, celebrates with captain Tom Latham the dismissal of England captain Joe Root during the third day of the second cricket test match between England and New Zealand at Edgbaston in Birmingham, England, Saturday, June 12, 2021. (AP PhotoRui Vieira)

Mark Wood delayed the inevitable with a 38-ball 29 before becoming Wagner’s third wicket, and Trent Boult bowled Stuart Broad on 1, but Stone and Anderson held on for one more over to force a fourth day of play.

New Zealand's Neil Wagner celebrates the dismissal of England's Mark Wood during the third day of the second cricket test match between England and New Zealand at Edgbaston in Birmingham, England, Saturday, June 12, 2021. (AP PhotoRui Vieira)

New Zealand resumed the day on 299-3 and Ross Taylor went from 46 to the verge of a 20th century but he nicked Stone behind on 80.

England captain Joe Root reacts as he walks off the field after losing his wicket during the third day of the second cricket test match between England and New Zealand at Edgbaston in Birmingham, England, Saturday, June 12, 2021. (AP PhotoRui Vieira)

More AP sports: https://apnews.com/hub/apf-sports and https://twitter.com/AP_Sports

Sunday will mark the fourth morning of the second test when New Zealand should achieve the milestone win and a 1-0 series triumph. It will also give the Kiwis an extra day of rest before the world test championship final against India starting on Thursday.

New Zealand's Matt Henry celebrates the dismissal of England's Zak Crawley during the third day of the second cricket test match between England and New Zealand at Edgbaston in Birmingham, England, Saturday, June 12, 2021. (AP PhotoRui Vieira)

New Zealand's Matt Henry celebrates the dismissal of England's Zak Crawley during the third day of the second cricket test match between England and New Zealand at Edgbaston in Birmingham, England, Saturday, June 12, 2021. (AP PhotoRui Vieira)

The Black Caps’ first innings finished before tea on 388 for a lead of 85.

But in the six overs to the break, both England openers edged to the slips off fast bowler Matt Henry. Rory Burns went second ball of the innings for a duck, and Dom Sibley was out for 8.

Henry also got the next wicket after tea, trapping Zac Crawley on 17 at 30-3.

New Zealand's Neil Wagner, center without cap, celebrates with teammates the dismissal of England's Dan Lawrence during the third day of the second cricket test match between England and New Zealand at Edgbaston in Birmingham, England, Saturday, June 12, 2021. (AP PhotoRui Vieira)

New Zealand's Neil Wagner, center without cap, celebrates with teammates the dismissal of England's Dan Lawrence during the third day of the second cricket test match between England and New Zealand at Edgbaston in Birmingham, England, Saturday, June 12, 2021. (AP PhotoRui Vieira)

Neil Wagner, auditioning along with with Henry to play India in the final, got Ollie Pope lbw for 23 and Dan Lawrence caught behind for a duck in two overs.

Spinner Ajaz Patel chipped in with James Bracey, who tried a paddle sweep and exposed his wickets, and got the last recognized batsman, Joe Root, after the captain looked at 61 balls to make 11.

England was 76-7 and its embarrassment in danger of sinking to an innings loss.

England's Dom Sibley, center, watches New Zealand's Daryl Mitchell, right, take the catch to dismiss him during the third day of the second cricket test match between England and New Zealand at Edgbaston in Birmingham, England, Saturday, June 12, 2021. (AP PhotoRui Vieira)

England's Dom Sibley, center, watches New Zealand's Daryl Mitchell, right, take the catch to dismiss him during the third day of the second cricket test match between England and New Zealand at Edgbaston in Birmingham, England, Saturday, June 12, 2021. (AP PhotoRui Vieira)

Mark Wood delayed the inevitable with a 38-ball 29 before becoming Wagner’s third wicket, and Trent Boult bowled Stuart Broad on 1, but Stone and Anderson held on for one more over to force a fourth day of play.

Still, England is set to lose a home test series for the first time since 2014.

England’s limp batting undid all of the good work by the bowlers to restrict the Black Caps’ first innings to 388.

New Zealand's Ajaz Patel, center, celebrates with captain Tom Latham the dismissal of England captain Joe Root during the third day of the second cricket test match between England and New Zealand at Edgbaston in Birmingham, England, Saturday, June 12, 2021. (AP PhotoRui Vieira)

New Zealand's Ajaz Patel, center, celebrates with captain Tom Latham the dismissal of England captain Joe Root during the third day of the second cricket test match between England and New Zealand at Edgbaston in Birmingham, England, Saturday, June 12, 2021. (AP PhotoRui Vieira)

New Zealand resumed the day on 299-3 and Ross Taylor went from 46 to the verge of a 20th century but he nicked Stone behind on 80.

The innings, which threatened to go past 400, fell away with Wood and Broad grabbing a couple of wickets each. New Zealand went from 312-4 to 388 all out.

Broad finished with 4-48.

New Zealand's Neil Wagner celebrates the dismissal of England's Mark Wood during the third day of the second cricket test match between England and New Zealand at Edgbaston in Birmingham, England, Saturday, June 12, 2021. (AP PhotoRui Vieira)

New Zealand's Neil Wagner celebrates the dismissal of England's Mark Wood during the third day of the second cricket test match between England and New Zealand at Edgbaston in Birmingham, England, Saturday, June 12, 2021. (AP PhotoRui Vieira)

More AP sports: https://apnews.com/hub/apf-sports and https://twitter.com/AP_Sports

England captain Joe Root reacts as he walks off the field after losing his wicket during the third day of the second cricket test match between England and New Zealand at Edgbaston in Birmingham, England, Saturday, June 12, 2021. (AP PhotoRui Vieira)

England captain Joe Root reacts as he walks off the field after losing his wicket during the third day of the second cricket test match between England and New Zealand at Edgbaston in Birmingham, England, Saturday, June 12, 2021. (AP PhotoRui Vieira)