There could be may reasons for this condition. If your check engine light is "on", please have the codes read and post them here so that I can help your track down the problem.
A few things to check/complete:
Check for loose/disconnected hos going to the air cleaner housing. If a major hose is disconnected or loose it could cause stalling.
This guide will help
Clean the throttle body, often when dirty, these can cause the engine to stall.
Check for major vacuum leaks such as a large vacuum hose disconnected from the intake manifold or throttle body. Be sure to check the PCV hose (check its entire length).
Check for loose connections at the positive battery cable, where it attaches to the under hood fuse box. Also at the negative battery cable where it connects to the engine.
Images (Click to enlarge)
Tuesday, August 18th, 2020 AT 2:08 PM