When my car was acting like that it was the intake manifold going bad, then next thing that went out was the fuel pump. The car will still run several times w/ the fuel pump going bad before it finally doesn't work anymore.
The intake itself or the gaskets?