When an engine cranks (aka turns over) but will not start, this means it is missing one of two things: spark or fuel. Typically fuel.
One electronic thing that can easily be checked to see if it's shutting off fuel is the maf sensor. Unplug that and try to start it. If you are successful a few times in a row, likely the maf needs to be cleaned or replaced.