Despite many miscalculations, the party, under the aggressive leadership of Imran Khan, has persevered