Some vehicles have an oil pressure interlock that won't let the engine start if the pressure is zero, I don't know about yours, what engine do you have.
You could have a bad oil pressure sensor, perhaps broken wires to sensor,
Perhaps a bad oil pump.
Just to clarify, when you say it won't start, I'm assuming you mean the engine spins with the starter, it just won't fire and run.