It was the third time Sri Lanka have been whitewashed at home after India last year and Australia in 2004.
Sri Lanka limped to 53-4 on Sunday as they battled to reach 327 to win the third and final Test against England and avoid a series whitewash
At the close of a roller coaster second day, England were 3 without loss after four overs when bad light stopped play.
At stumps on day one, England, 2-0 up in the series, were 312-7, Bairstow having made 110 after valuable partnerships with Joe Root and Ben Stokes
Anderson, record-breaking fast bowler, said that while Broad was "delighted" at getting a chance he was feeling like a "spare part".
Moeen Ali took four wickets and Adil Rashid one as England's three frontline spinners accounted for the whole innings
Moeen Ali trapped Mathews lbw in the first over after tea to end the senior batsman's solid resistance
England reached 324 for nine - a second innings lead of 278 - when bad light stopped play for the day at Kandy.
England spinner Jack Leach then strengthened England’s position, dismissing opener Kaushal Silva in the 12 overs Sri Lanka faced
LPL draft: 8 Pakistan players picked, Gayle joins Kandy, Russell goes to Colombo
Abdullah Shafique gets maiden call-up; Sarfaraz Ahmed, Shoaib Malik dropped for Zimbabwe series
Pakistan include four uncapped players in 15-man squad for first ODI
National T20 Cup: Three-way race to the last semi-final spot
Mohammed Siraj record spell sparks total capitulation of KKR
Umar Gul calls time on his professional career
Zimbabwe T20Is moved to Rawalpindi, PSL games to be staged in Karachi due to smog
Azhar Ali to be stripped off Test captaincy ahead of New Zealand tour: reports
Quaid-e-Azam Trophy: Hasan Ali, Ahmed Shehzad return, Yasir Shah named Balochistan captain
PCB presents financial draft proposal to PSL franchise owners