Jamie Smith and Chris Woakes helped England into a strong position on day three of the first Test at Emirates Old Trafford, but Sri Lanka kept themselves in the hunt to lead by 82 runs at the close.
It was two excellent sessions for the hosts as they were firing with both ball and bat, a brilliant knock by Smith (111) the highlight of England's first innings as they ended all out on 358 with a 122-run lead.
Woakes (2-34) and Gus Atkinson (1-38) made their mark early in the second innings as Sri Lanka collapsed to 10-2 in the space of the first two overs.
- Scorecard: England vs Sri Lanka: First Test, day three
- England vs Sri Lanka: First Test, day three- as it happened!
- Stream England vs Sri Lanka and more with NOW
However, Angelo Mathews (65) was the shining light for Sri Lanka as he passed 1,000 Test match runs against England in a 78-run, sixth-wicket stand alongside Kamindu Mendis (56no), with the tourists continuing to frustrate the home side at times as they closed on 204-6.
Mathews and Kamindu battle after England take charge
After a sloppy morning for Sri Lanka, their day got worse as it was a perfect start to the second innings for England, Woakes working quickly to remove Nishan Madushka (0) for a duck in his first over, before Atkinson struck with his fourth delivery from the other end to remove Kusal Mednis (0) for another duck, leaving Sri Lanka flailing on 10-2 and trailing by 112 at lunch.
After a slight recovery to bring up the 50, Mark Wood (1-36) then struck with his first delivery to remove Dimuth Karunaratne (27) and break the third-wicket partnership with the visitors still trailing by 70.
Mathews was playing very positive cricket and taking England's seamers on but as he and Dinesh Chandimal (10no) were building an important partnership, a Wood delivery struck Chandimal's thumb, the wicketkeeper retiring injured with Sri Lanka trailing by 48 after 17.2 overs.
With Mathews then joined by captain Dhananjaya de Silva (11) at the crease they rallied to 95-3 but it was then Matthew Potts' (1-26) turn to strike to remove the skipper for his first wicket of the game, leaving the visitors with a lot of work to do.
Sri Lanka headed in for tea on 107-4 and behind by 15.
Mathews was holding the innings together and got his reward as he brought up his 42nd Test half-century in 86 balls, working with Kamindu to bring their side into the lead in the 36th over, their stand passing the 50 mark quickly after.
Their solid partnership was the first real test for Pope's captaincy and Joe Root (1-1) had a chance to break it but dropped the catch at slip to dismiss Mathews with Sri Lanka on 157-4, Atkinson then dropping another Potts delivery to end Kamindu's innings with the visitors on 158-4.
With a ball change and swinging conditions at the end of over 41, Woakes took the key wicket of Mathews - Potts showing how it is done with a diving catch - to break a 78-run stand.
Woakes then thought he had struck twice more to remove Kamindu and Milan Rathnayake (10) via lbw but on review both had got bat on ball to keep their side in the encounter, Kamindu bringing up his half-century from 95 deliveries.
With Wood going off mid-over after tweaking something, Root came into the attack for the first time in the innings and sensationally delivered the wicket England were after with his first ball, Rathnayake sending it up in the air for Ben Duckett to take.
After an X-ray confirmed that Chandimal had not broken his finger and would be able to bat again, he returned to the crease, seeing out the day with Mendis as they closed on 204-6 and leading by 82.
Smith brings up classy maiden Test century
The third day at Emirates Old Trafford started with Smith just 28 runs short of his maiden Test hundred and, after falling five runs short against the West Indies, the pressure was on.
But, as he stayed sturdy during a crucial seventh-wicket 66-run partnership with Atkinson (20), the 100 finally arrived after 148 deliveries, the helmet coming off as the crowd and his team-mates rose to applaud the moment.
With Smith's classy century secured, it took just two deliveries for Sri Lanka to then break the stand, Atkinson nicking Milan Rathnayake's (1-66) delivery behind to keeper Dinesh Chandimal for his first-ever Test wicket.
With England on 315-7 with a lead of 79, the curse of Nelson struck as Smith's excellent innings came to an end from a Prabath Jayasuriya delivery, leaving the tailenders to try and build, Mark Wood (22) and Matthew Poots (17) helping put England on top.
What they said: Smith: Test century is 'something you wish for'
England's Jamie Smith on his maiden Test century...
"It was a pretty good feeling, I felt like I missed out against West Indies so it was more special to get over the line.
"But putting on some runs and getting us into a lead was the most important thing.
"It was tough going with how slow the outfield was, there were less boundaries than you're hoping for and less value for shots.
"It's a flat wicket, bowling nice and straight, harder graft than other innings but it was really enjoyable.
"It was great to get a century, it's something you wish for and a nice one to tick off.
"On 98, I was thinking about running down and launching it, I was always trying to be positive and I'm not going to change the way I was playing just because of the sake of a milestone.
"It was nice to come away with it but if I changed the way I was playing and got out I would have been annoyed."
Watch the fourth day of England's first Test against Sri Lanka, from Emirates Old Trafford in Manchester, live on Sky Sports Cricket and Sky Sports Main Event from 10.15am on Wednesday (11am first ball)
Sky Sports+ has officially launched and will be integrated into Sky TV, streaming service NOW and the Sky Sports app, giving Sky Sports customers access to over 50 per cent more live sport this year at no extra cost. Find out more here.