Friend and Foe mentality is not helping us. Saudis and Iranians are all for their own interests and we should do the same - what benefits us in the long term. The Iranians are suddenly waking up from their deep pro-India slumber and once again exploiting our brotherhood sentiments to propel their own goals - which is evading sanctions.
A sucessfull foreign policy is based on prioritizing national, civilian and regional interest. Our foreign policies are based on 7th century socialist concept, and by extension of this mentality is opposing India. The precise reason we find ourselves in a constant flip flop with Iran vs Saudi Arabia is our unnecessary aspirations to be seen as "OIC champions". Much of the current events which have unfolded in Pakistan for the last 2-3 decades have their roots in the same failed foreign policy and so its the recent string of sectarian strife.
Relations with China are an extended by product of "oppose India at all cost" mentality - which again has its roots in bogus Islamic history of superior Muslim rule over India for 1000 years. As China and India grow to become responsible powers in the region, their tensions will diffuse while economic integration with strengthen making Pakistan an insignificant part of equation. Beijing will still long to maintain some token relations with Islamabad but the direction will change from "countering India" to making sure Pakistani government remain under hedge against activity which mean disrupt Chinese economic activity with India.
Things would be much different today if our FP was not dictated by events in alien lands, there would be no need to continue supporting Taliban in Afghanistan post soviet withdrawal, Pakistan would on good terms with all its neighbors and sectarian violence would be kept at bay. Continuous failure of our unrealistic FP is driving us into chaos, we have lost touch with reality, our population has lost the sense of nationhood and now a big lava of ethnic and sectarian tensions is cooking which may explode into a civil war anytime. The OIC focused FP has turned our internal state of affairs so confusing that we cannot even differentiate between friend and foe anymore. Confusion is evident as several terrorist leaders have been arrested and then freed without conscience. Our second most important neighbor - Afghanistan with 3 Million afghan refugees in Pakistan has written us down as "pariah state" in their books.
The biggest sign of any failed state is their armed institution losing efficiency and turning into showpieces of might - and the process has somewhat already started in Pakistan.
A good step for Pakistan would be to withdraw from OIC, as it gives us a false sense of support and dignity which is not really the case and have a second look on our internal and external policies. Decide what should be the course of nation for next 50 years and who is friend and who is a foe. How should Pakistan play a stronger regional role and integrate itself with its roots in the region rather than remote desserts of Iran and Arabia.