2500 350tbi when you idle sometimes the engine dies but when you put gas in carb tbi it starts whats up?

Well you might have a dirty fuel injector, low fuel pressure, or an air leak somewhere in you're intake manifold.