The US faced a different ideology in the Soviet Union from what it faces in fanatical Islam today. If communism could not meet the subsistent needs of the average Ivan it was destined to fail, especially when in opposition to a more productive opponent. It couldn't and did. The US only hastened an inevitable outcome imo.
Those in Islam willing to wage holy war against the west do so for ideological reasons similar to those of the Soviet Union, replace the corrupt and decadent values of the west with a rigid theocracy. Both Islam and Communism are dependent on its individual’s adherence to selfless moral values to succeed. Communism offers little in return for the individuals sacrifice while Islam offers martyrdom and eternal reward.