Here are a couple of websites to look over so you understand exactly where the electronic system starts and ends. We all wish it were simple and a simple computer diagnostics test would fix the issue.
But, if a vehicle is getting fuel and fire (Spark) it should start.
http://troubleshootmyvehicle.com/gm/4.8L-5.3L-6.0L/how-to-test-the-crank-sensor-1
http://www.truckforums.com/forum/chevy-silverado-gmc-sierra-forum-11/asking-diagnostic-idea-advice-truck-wont-start-sometimes-16860/
Gerald Wheelus