Pakistan kicked off their T20 World Cup campaign with a dominant 31-run win over Sri Lanka in Sharjah.