Car Stalls while pressing gas pedal

my car starts and idles fine but when I press down the gas pedal it stalls, any thoughts?

How many miles and what maintenance has been performed? What year and any check engine lights?

99 Dodge Intrepid, check engine light is on, 151,000 miles. The car has been sitting for two months without being operated… does that help?

Quick fix try some sea foam in the gas tank per directions and try to get some miles in. Best fix get the code read find the solution for the Check engine light

Thanks so much for your suggestions. I’ll look into the sea foam and most likely the “best fix” option. Thanks again