96 jeep cherokee

I am having a similar problem. I had my 96 jeep Cherokee sport out in the woods for a little bit (nothing crazy) and on my way out while driving on a dirt road the motor just stopped yet my stereo and headlights still were working. Someone had stolen my gas cap a week or 2 ago so I thought it wasn't getting gas so I replaced the fuel filter and it was a little dirty but still would not start so after reading many of these forms and talking to a few mechanic buddy's found it might be the crankshaft sensor (since it is not getting any spark) and after replacing it still nothing. im currently waiting for a tow to auto zone to have them scan the computer and see what codes come up. any ideas please lmk I will keep you posted on what I find from the computer.