Ayub Khan was notoriously pro-American and even offered a joint-defence pact to India in order to help fight off China.
Link:
Bhutto's foreign policy legacy - DAWN.COM
"The roots of our strategic relationship with China go back to the India-China clashes in October 1959 in Ladakh. Bhutto was then leading Pakistan's delegation at the UN General Assembly. He was alarmed at President Ayub Khan's offer of joint defence to India. Bhutto felt that only those unlettered in international affairs could believe that such an offer would be accepted. In fact, it was more likely to incur the hostility of China which had so far, despite our membership of anti-communist western alliances, refrained from criticising Pakistan."
If India had accepted this joint-defence pact from Ayub Khan they might have won the 1962 war with Pakistan fighting at their side.
If Pakistan had accepted China's invitation to help us in 1962 they might have seized Kashmir from an already defeated India.
Can't blame either side though, China at that time was a complete mess, in the middle of the worst famine in our history (Great leap forward) and utterly destroyed from WW2 and the Chinese Civil War. We were a nation that was starving to death, hard to believe we could fight back.