I know there are a lot of folks smarter and much more familiar with how this stuff works than me. With that said, I will tell you what happened to mine and maybe you can use the info to help your issue.
First, which I am surprised at, is no one has mentioned the throttle body. I have had to replace mine and it had similar symptoms.
Second, this is what I was referring to. I had an issue with the AC. It would work intermittently. It got to where it would work as long as I was accelerating. I had it vacuumed down and recharged a couple of times. I had the pressure switches changed. I dealt with it in and out of shops for a year. it got to where it would only work when I made left turns. Crazy right? I thought so. Me being the crazy one.
I finally took it to a dealer where I knew someone and told them not to give it back until they figured it out and fixed it.
Two days later, they said they fixed it. They said they had their tech work on it all day for two days straight trying to figure it out.
What happened was when the engine was installed originally (had 180,000 on it at this point) the wire loom that leads to the compressor was resting near the engine mount, exhaust area. So, over time, it stretched slightly, the look wore off, then the sheathing on the wire wore off, which in turn allowed the wires to touch the frame. So when I would accelerate or make a left turn, the engine would shift slightly, allowing it to "un-short" itself letting the AC work for a second or two. The engine would shift back, short it out, and bang. No more AC. It wasn't a difficult fix. Some solder and tape and was good as new. No problems since.
Moral of this is it may not be an obvious problem, especially when it seems like you have tried a bunch of stuff. Start checking other things to make sure there isn't something stupid pinched, shorted, or otherwise in the wrong place causing your problems. Hope this helps and I can't believe it if anyone read all the way through!! Lol.