94 Dodge ram 4x4, runs super rough.

Had an oil pressure switch act like that one time.
It was faulty and sending false information to the computer, thinking the engine had no oil pressure.
It would shut the engine down, that took me a while to find.