One common culprit for this problem is the crankshaft position sensor, which measures the position and speed of the crankshaft. The computer uses the information from this sensor to know when to fire the spark plugs. If the sensor isn't working, the spark plugs won't fire, keeping the engine from starting.