It was not Iran who did not team up with Pakistan, it was Pakistan who did not team up with Iran since the revolution.
Arabs were hostile to the post-revolution Iranian govt as soon as it started and they immediately started using Pakistan to sabotage them. Pakistan is the one who has been the bad neighbor to them despite their attempts. Iran only started meddling in Pakistan's affairs in the last 15 years, after they got completely fed up of our behaviour. If we are Pakistanis, it does not mean we have to go into a one-sided victim mode about 'what was done to us'. We also have to look at what we did, ourselves.