A motivational team talk from Brendon McCullum inspired England to their thrilling chase at Trent Bridge against New Zealand, with Ben Foakes likening the message to a battle cry.

England managed a fourth-innings chase of 279 in the opening Test against the Black Caps at Lord's, with Joe Root posting a majestic unbeaten 115 to guide his team to victory.

More heroics were to follow in Nottingham when England had to chase 299 on day five.

Jonny Bairstow smashed England's second-fastest Test century as Ben Stokes' side plundered in the last session to secure an unassailable 2-0 series lead.

McCullum's coaching methods, which are said to focus on mentality as opposed to technique during the match, have been praised, and Foakes credited his coach's team talk before the final session.

"Baz's team talk at tea – it was like William Wallace!" Foakes said to ESPNcricinfo, referencing the famous Scot who battled in the First War of Scottish Independence and was depicted in the film 'Braveheart'.

"After he was done, everyone was desperate to get out there.

"The traditional Test approach in that situation would be 'see how it goes, see how many wickets we've got left, then if the situation isn't there, do we shut up shop?'

"He was like, 'Nah, we're not doing that. We're winning this game. If we don't, so be it – we've done it the right way. It doesn't matter if we don't win this game.' And it took the pressure off."

Foakes has taken the gloves for England, with new captain Stokes repeatedly expressing his support for who he feels is the best wicket-keeper in the world, and the Surrey star has subsequently delivered.

He has also experienced an upturn in his batting, scoring an unbeaten fourth-innings 32 alongside Root at Lord's before managing 56 and 12 not out at Trent Bridge to see England over the line.

England will look to complete the series sweep against New Zealand at Headingley starting on Thursday, and Foakes says the leadership of Stokes and McCullum has reinvigorated his enjoyment of cricket.

"It has changed the way I look at Test cricket," Foakes added. "With playing for England, there are obviously a lot of pressures, a lot of criticisms and things like that.

"If you think about that too much, it weighs on you. But over the last two weeks, it's clear to see the positives and how amazing playing for England can be.

"Baz and Stokesy, the way they are, promote that. When I think about it, my approach to Test cricket has always just been about endurance, mentally slow for a reason, and meant to be calculated.

"When you play for England, there is another side to it – the entertainment factor. I guess it's similar to the game a year ago [at Lord's, where England declined to chase 273 in 75 overs]: we could have gone for the win, but didn't.

"For pure entertainment value, within the crowd and at home, even if you lose that game at Trent Bridge, you're probably doing more for Test cricket.

"There's a balance in the game and trying to improve the viewership of it as well."