Elgar looked set for his 13th Test ton until he offered Sri Lanka seamer Dasun Shanaka a sharp caught-and-bowled chance that was superbly taken.
Bowlers dominated the day with 16 wickets falling in the entire day.
Images from Day 1 of the first Test between India and Sri Lanka, at Mohali, on Friday.
This is his 'Test' and for Kohli, a century to mark a 'century' is something he would be craving
Sri Lanka captain Dinesh Chandimal has been included in the 16-man squad for the second Test of the three-match series against India which begins on Thursday after recovering from illness.
Chasing 476 for victory, Sri Lanka were all out for 212.
Sri Lanka ended the day at the score of 64/3, still trailing the hosts by 127 runs.
Pandya's aggressive batting powered India to 487 all out after starting the day at 329 for six. The memorable knock was also Pandya's first ever hundred in first class cricket.
Images from Day 2 of the third and final Test between Sri Lanka and India in Colombo on Sunday.
In the first Test in Kolkata, Herath bowled only eight overs in seaming conditions, but was required to send down 39 overs in the only innings that India batted in Nagpur, after which he complained of back pain.
As India take on Sri Lanka in a three Test series, Rajneesh Gupta presents all the numbers.
Azharuddin, whose nomination was rejected two years ago, submitted his papers to former Chief Election Commissioner VS Sampath on Wednesday.
Here is a factbox on the third and final Test between India and Sri Lanka beginning at the Feroz Shah Kotla Stadium in New Delhi on Saturday:
South Africa remained on course for victory at the close at Kingsmead on Friday.
Fast bowler Dale Steyn took four wickets as South Africa seized control of the first Test against Sri Lanka on Day 2 and went to the close on 126 for four, an overall second innings lead of 170 runs.
Vishwa Fernando bagged four wickets as Sri Lanka took the honours on day one of the first Test against South Africa by reducing their hosts to 235 all out at Kingsmead on Wednesday.
Fast bowler Mitchell Starc picked up his second five-wicket haul in the match to lead Australia to a comprehensive 366-run victory in the second Test against Sri Lanka and a 2-0 series win.
South Africa have slipped to number six in the world, behind fifth-placed Sri Lanka, and have a host of questions to answer, not least around a brittle top six and the balance of the side.
India bulldozed Sri Lanka by 168 runs in the fourth one-day international on Thursday after skipper Virat Kohli and opener Rohit Sharma smashed blistering hundreds to put the tourists 4-0 up in the five-match series.
Opener Rohit Sharma smashed an unbeaten 124 to help India overcome a top-order wobble and register a series-clinching six-wicket victory in the third one-day international against Sri Lanka in Pallekele on Sunday.
Rediff.com brings you a wrap of big stories in pictures with the Best Sports Photos of the Week.
Teenager Trent Alexander-Arnold curled in a magnificent free kick on his European debut to set Liverpool on the way to a 2-1 win at Hoffenheim which put them on the brink of UEFA Champions League group stage place.
Usman Khawaja found his scoring touch and fast bowler Mitchell Starc returned to his fiery best as Australia moved within sight of victory in the second Test against Sri Lanka at the Manuka Oval on Sunday.
Burns, who had scored the last of his three Test hundreds against New Zealand in early 2016, was batting on 107, the first century by an Australian batsman since Usman Khawaja's 141 in the drawn Dubai Test against Pakistan last October.
Sri Lanka will look towards veteran Lasith Malinga to deliver with the ball and get them back on the winning path after their horror showing in the three-Test series.
Root said that spinning tracks will throw challenges to the visiting team but they are adapting to the conditions quickly.
Eager to see how Virat Kohli shapes up as a leader, former Sri Lankan batsman Romesh Kaluwitharana said India's new firebrand cricket captain looks hungry for wins.
Resuming at 135-3, overnight batsman Kohli slammed a fifty, while the rest of the middle-order -- Ajinkya Rahane (40), Rohit Sharma (38), Shikhar Dhawan (41) too looked in good touch as they spent some time at the crease before retiring.
Kusal Mendis excelled under pressure again, hitting a sparkling 86 and featuring in two important partnerships to help Sri Lanka overcome a shaky start and post 281 all out on the opening day of the second Test against Australia on Thursday.
A dominant Indian team is expected to maintain its stranglehold on a miserable Sri Lanka and wrap up the three-match series when the two mismatched teams face off in the second Twenty20 International in Indore on Friday.
Dhananjaya de Silva hit a maiden century and combined with Dinesh Chandimal to resurrect Sri Lanka's innings after a poor start against Australia on the opening day of the third and final Test on Saturday.
This is Tharanga's second ban in recent times after he suffered a similar two-match ban for slow over-rate in the Champions Trophy when he had led the side against South Africa in the absence of then-skipper Angelo Mathews.
Images from Day 1 of the third and final Test between Sri Lanka and India in Colombo on Saturday.
Sarfraz Ahmed will continue as Pakistan captain at the World Cup in May despite serving a suspension for breaching the anti-racism code, Pakistan Cricket Board (PCB) Chairman Ehsan Mani said on Tuesday.
India carried its domination from the Test series into the One-day format and achieved its biggest ever win in terms of overs left while chasing a 200-plus total.
In reply to Sri Lanka's 411/9 declared, the Board President's XI were struggling at 31/2 after lunch on the second day, but Samson patiently built his innings and helped his side reach 287/5 when both captains agreed on a stalemate after 75 overs.
Ajinkya Rahane scored an unbeaten hundred but skipper Virat Kohli's poor form continued as the touring Indians put up 314 for six on the opening day of their only three-day tour game against Sri Lanka Board President's XI in Colombo, on Thursday.
The home team was comfortably placed at 139 for one, thanks to the second wicket stand from opener Danushka Gunathilaka (74) and Lahiru Thirimanne (59) before collapsing to 187 all out.
Looking for a proper tune-up before the three-match Test series against hosts Sri Lanka gets underway, India would be hoping that rain stays away from their one and only three-day practice game beginning at the R Premadasa Stadium in Colombo, on Thursday.
Galle has built a reputation as a spinners' paradise but Australia captain Steve Smith hopes there will be substantial reverse swing at the venue as his top-ranked team bid for a series-levelling win against Sri Lanka in the second test. Sri Lanka inflicted a 106-run defeat on the touring side at Pallekele last week in the opening match of the three-test series with the spinners taking 18 out of 20 Australian wickets to fall.