Kieffer Moore downed Coventry with a perfect second-half hat-trick as Wrexham won 3-2 to inflict a first league defeat on the Championship leaders.

Coventry, the only unbeaten side in the EFL, were closing in on a club-record seventh straight league win when Ephron Mason-Clark superbly slotted the Sky Blues ahead midway through the first half. The omens were not good for Wrexham given Frank Lampard’s side had scored 34 goals in 12 games before arriving in north Wales and the home side had won only one of their previous seven.

But Moore turned the contest on its head with two goals in the space of nine second-half minutes, the Wales striker capitalising on a couple of excellent Josh Windass assists. Moore then took his tally for the season to nine – from yet another Windass assist – seven minutes from time, his fine left-footed strike adding to his earlier right-foot finish and header.

Coventry made the final moments interesting as Tatsuhiro Sakamoto pulled a goal back from 20 yards in the 88th minute, but Wrexham held on to move up to 11th in the table.

Wrexham were seeking to end their Carabao Cup hangover after losing at home to Welsh rivals Cardiff on Tuesday and Windass wasted the first opportunity after seven minutes. Coventry’s first chance was a wayward Liam Kitching header, while Matt Grimes curled a free-kick wide.

Wrexham showed far greater intensity than they had done against League One Cardiff and fashioned promising moments. Carl Rushworth spilled a Matty James corner and Dominic Hyam hooked the ball over his shoulder for Kitching to clear in a crowded six-yard box. Rushworth redeemed himself after James sent Windass scampering into the channel to find Lewis O’Brien, the goalkeeper saving well with an outstretched foot.

Lewis O’Brien races to congratulate Kieffer Moore after his third goal for Wrexham. Photograph: Ben Roberts/Danehouse/Getty Images

Coventry took advantage of that escape and struck moments later as Wrexham stood off Sakamoto and the Japanese winger delivered a searching pass for Mason-Clark to sweep home on the half-volley after staying onside.

Luke Woolfenden’s looping header was tipped over by Arthur Okonkwo as Coventry scented more success. Wrexham responded, with Liberato Cacace unable to keep his volley down and O’Brien’s 25-yard attempt safely gathered by Rushworth.

Max Cleworth shot just wide of the far post as Wrexham continued to press after the break, although the home side breathed a sigh of relief after Mason-Clark surged forward and Haji Wright was off target.

Wrexham’s endeavour was rewarded on the hour when Issa Kaboré fed Windass down the right and the sliding Moore met his cross to beat Rushworth from close range. It got better for Wrexham nine minutes later as Windass again found the room to pick out a cross to the far post this time and Moore, peeling off his marker, headed home brilliantly. Moore completed his first hat-trick for more than seven years with another polished finish, after running on to a through ball down the left.

skip past newsletter promotion

Sign up to Football Daily

Kick off your evenings with the Guardian’s take on the world of football

Privacy Notice: Newsletters may contain information about charities, online ads, and content funded by outside parties. If you do not have an account, we will create a guest account for you on theguardian.com to send you this newsletter. You can complete full registration at any time. For more information about how we use your data see our Privacy Policy. We use Google reCaptcha to protect our website and the Google Privacy Policy and Terms of Service apply.

The Wrexham manager, Phil Parkinson, revelled in a “statement performance and win” after Wrexham ended the last unbeaten record in the EFL.

“It’s definitely a statement performance and win for us,” he said. “We’ve had some terrific performances, but I’m very pleased because this was against an excellent side. “If you look at Coventry’s stats, not just the wins, they’re at the top of everything.”

Lampard said: “We dropped our standards a bit and when that happens you can lose a game. You have to credit the opposition, they made it difficult for us, but even in the first half at 1-0 I I felt we were a bit off it.

A game like this can run away from you, so it’s normal. The season’s not been normal so far, but unfortunately tonight it was.”