make sure you map sensor tube dosnet have a vac leak or is blocked, or disconnected all together. my car was running like that one day after i did some work and couldnt figure out why, drove me nuts. come to find out i had knocked off the map sensor tube by accident.
but from the sounds of it it might just be a dirty throttle body. take off the IAC clean in there too. clean inside all those little vac ports, make sure there free flowing. i use carb cleaner and an old toothbrush to scrub all the muck off the throttle body and IAC. make sure your IAC has a little o-ring around it, prevents air from escaping.
also what do you mean by gaskets half broken off? talking about the real thin ones between where throttle body bolts to the manifold? even if you had no gasket there at all it would make the car run as bad as what your talking about.
also done an error code check?