Pakistan crashed out of the T20 World Cup despite a five-run victory against already-eliminated Sri Lanka in a Group Two Super Eights match in Pallekele on Saturday.