the '49 War happened the way it did because of the British Jewish Brigade was trained and fought in WW2 and a solid corps of them served as the backbone of the Haganah/Palmach. 5000 Palestinan Jews received British training and gear, many veterans of that unit carried British weapons into the 49 war.
they won the Six Day War (six, not seven), because they received several credible intelligence tip-offs from the US, UK, and other sources related to the huge build-up of Arab forces. they launched an attack and completely caught the Arab militaries off guard before they could launch their own offensive -- which, again, wouldn't have happened without foreign help.
they won the Yom Kippur War because the US military stripped it's divisions on Europe and sent all of the ammo and gear to Israel. In response, the Arab world kicked off the oil embargo, which kicked of a couple decades of economic malaise, basically until the dot-com boom of the 90s.
the IDF punches above its weight, of that I have no doubt, but they only keep winning due to foreign help.