Kumar Sangakkara was batting on 58 and Kaushal Silva was on 37.
Sri Lanka need 260 runs to win the game with nine wickets in hand.
The second and final Test will be played in Colombo from July 24-28.