Could also be a temperature sender in the manifold if you arent getting fuel out the injectors. I had the sensor go bad, kept the injectors from firing. It was stuck on 210* when the truck was at 40*. Theres one sensor in the head, for the gauge, and one on the front of the intake manifold. The one in the manifold runs the computer.
Also, like someone else said earlier, unplug one of the injectors, plug in a NOID light (I got one couple years ago, out of one of the little plastic bins at advance for like 99 cents), and see if the injectors are getting an impulse to fire. Plug it in, crank the engine over, it should flash really fast as the engine turns over. If it flashes reallllllllly slow, I would bet money on the temp sensor, cause thats what mine was doing. If its not flashing at all......Not really sure, could be the temp sensor, computer, oil pressure sensor....Something along those lines.