Well....... First we need to know what you have under the hood of your YJ, other than it is a 4 cyl./5 speed? Has it be modified with an after-market carb, ignition, etc.? Does it stall on it's own, if so is it immedately or does it take a few seconds? Or does it stall when you try putting it in gear?
Regardless, there is a trouble shooting proceedure I would follow prior to investing in new parts randomly. I would start with:
1. Do I have any visable lose vaccum lines? (you can find the vaccum diagrahms online with little effort).
2. Am I getting fuel at the carb while cranking the engine?
3. Am I getting fuel into the engine following step one?
4. What do my spark plugs look like? Are they fouled from flooding (blackist & wet) or lean (lighter burnt coloring and dry)?
5. Am I actually get spark at each cylinder? The plugs will be a good indicator depending on the color. But you likely need to test each plug and wire seperately.
I'd start here and elminate some possibilities....... Keep us posted.