Sri Lanka reached 220-5 at stumps on day one after opting to bat first in the third Test against Pakistan in Sharjah.