Is it getting fuel, when you turn the key to the on position, can you hear the fuel pump in the tank for a few seconds. Is there a test port on the fuel rail? If you have fuel pressure, check spark.

May be a crank sensor as well. Check fuel and spark first.