Help! 94 dodge ram 3.9l issues

I need help trying to fix my dads 1994 dodge ram pickup with the 3.9l v6.

It starts right up, and will run fine until it begins to warm up. Once warm, if you try giving the engine part throttle it will stutter and pop, falls flat on its face.

If you floor it, it will go.

I pulled the tps sensor plug, and then it runs fine. replaced the tps sensor, no help. Im baffled at this point.

Any ideas would be greatly appreciated.