Ummm, there was that little thing called defense spending, where a good part of that race was not only held, but won by the US, as the USSRs spending to its GDP for defense was too large for sustainability, where we saw Reagan undo the many reductions in those defense spending capacities, and where every serviceman I talked to at the time said Reagan was their and the militaries best friend.
But yes, there were other factors as well