Wars end in negotiations, or when one side runs out of people or land, or when the population decides they'd rather fight someone else (like their leaders). Everything else is just either a means to get one of those, or make one of those more effective.
Tanks are a thing to make people better, money is a thing you use to buy people, defenses are a thing to make land better, etc etc.