Pakistan, chasing a Duckworth-Lewis target of 275 from 45 overs in the rain-interrupted match, scraped home off the penultimate ball.
The second match will be held at the same venue on Tuesday.
Brief scores:
Sri Lanka 275-7 in 45 overs; Pakistan 277-6 in 44.5 overs.