01 Ram won't start, need help!

Had the same problem with my 97 ram with the 5.9 liter in it. Ran just fine one day would not start the next, crank positioning sensor was bad. It is located behind the passenger side head in the top of the bell housing, has a wire that plugs into the harness. It's a little tuff to get at so take your time and don't go crazy trying to get it out. Got a new one from Auto Zone was about $45.00 compared to the dealer price of $89.00 it has been 3 years now and still running fine.