It doesn't matter which bloc Pakistan goes with, it will remain a failed state as long as the generals are controlling everything. These duffers only think in terms of tanks, planes, green cards, dollars and plots. The economy doesn't figure anywhere in their thick skulls.
During the cold war Pakistan was with the West. More then half of the world were in the Communist or Non-Aligned camp. India didn't have good relations with the America. The few countries with the West developed quickly with investment and good trade relations. South Korea is a great example.
But Pakistan didn't take advantage of it. Bhutto fuc*ed the economy with his nationalization of industry, banking, education and stuffing the government with uneducated villagers. We lost the 1970s with no economic development.
Zia came up with the brilliant idea of helping the CIA trap Russia into invading Afghanistan. That's their way of earning dollars. The 1980s were spent fighting the USSR on behalf of the West.
After the fall of USSR suddenly the whole world became capitalist, including China. There were many more countries to invest in with better infrastructure and educated population. Most foreign investment went to those countries, including Eastern Europe, East Asia etc. America practically built China by transferring all their industry there.
Pakistan missed the opportunity.
With China the same thing is happening now. Pakistanis is full of left-over terrorists, instability, uneducated population and political turmoil. Even if China wants to invest here they can't. It's not viable or profitable.
So, the generals can pivot east or west or north or south the result will be the same. A failed state.