After two final-ball losses, Pakistan register their first win at the T20 World Cup.