Hello and Welcome to Just Answer. My name is XXXXX XXXXX I will try my best to assist you and your 100% satisfaction is my goal. Please realize that all my answers are based solely on the info that you provide me with....
I don't know if you are a tech or a just working on your own vehicle so we may have to fine tune the answer. I only know as much about your problem as you have told me in your post, so my answers will be based on what you tell me so please add all the details you can.
You could have a bad mass air flow sensor. Or the snorkel from the mass air flow sensor to the throttle body could be ripped. Both are very common and can cause you vehicle to loose power along with many other drive ability issues. First look for cracks or rips or anywhere air can enter the engine
that is not accounted for by the mass air flow sensor. Next comes the Mass Air Flow (MAF) sensor. This is a very important sensor input to the computer. It uses a hot wire sensing element to measure the amount of air entering the engine. The MAF sensor then outputs an analog voltage signal to the PCM proportional to the intake air mass. The PCM calculates the required fuel injector pulse width in order to provide the desired air/fuel ratio. If the sensor is bad than this air/fuel ratio will be off causing severe performance issues. In extreme cases, I have seen these two problems cause a no start condition. This input can also be used in determining transmission Electronic Pressure Control, shift and torque converter clutch scheduling. The check engine light may even pop on if the sensor is bad, the snorkel is ripped or a tube has fallen off. This will result in a lean condition.
Also, You might have an air or a vacuum leak. This is very common! Open the hood and listen for a hissing sound when the engine is running.
If it is hard to pinpoint take some brake
cleaner or starting fluid around the intake manifold and vacuum lines and see if the engine stumbles or if the idle is affected. Be extremely careful when doing this!