Above posters are correct; first thing is you need to determine if you have spark or not. Use the procedure Parker mentions; you can put a spare spark plug in the wire too. Hold near a ground and have buddy crank engine.
If you have a bad crank sensor, you will not have spark OR fuel. I would perform the quick spark check first, then if no spark, check out the crank sensor.
Crank sensor is located on top of the bellhousing. Can't remember the cost maybe $30-50? Perform a SEARCH for crankshaft position sensor and you'll find more information as it is IMHO, crank sensor failure is the most common sensor failure on the XJ. You can check it with a multimeter. I believe the spec is 200 ohms plus or minus 75 ohms. If it doesn't check out, replace it. And no, I wouldn't get a salvage one unless you're up for having it happen again!
If you have a good quality spark, then check fuel pressure on the schrader valve on the fuel rail. Compare to spec.
You really need to do testing on no-starts. The testing is not particularly hard but you do need a meter/fuel gauge, etc. Throwing parts at it based on a hunch can quickly turn into an expensive experiment as oftentimes, your first hunch and sometimes your second, third, you get the picture is incorrect! I always verify spark first as that is easiest, then proceed to verify proper fuel delivery.
Other possibilities include cap/rotor/wire/ballast resistor. Never forget the basics.
Good luck and post back what you find!