This could be anything from an electrical fault to a fuel pump issue or a major air leak/loose hose clamp problem.
If the check engine light is not on and there are no fault codes stored , a good start would be to confirm fuel pressure at the time the failure occurs. Fuel pressure is one of the few parameters not directly monitored by the on board diagnostics.
If I understand your comment "All lights come on but none stay on" correctly , the electrical portion of the ignition switch ( a common trouble spot) could be failing. Short of replacement a simple , but not absolute , test can be wiggling the key with the engine running to duplicate the malfunction.
Remember , you need air , fuel and ignition for the engine to run....