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.