motor wont stay running

post a diagram of the way it should be wired] if it runs for a few seconds then it would not be the box ? it runs till i leave go of the key starts eight up ?

You are going to have to re-word this I have no idea what you mean.

HERE is how Mopar ignition switches work

There is ONE only power from the ignition switch through the bulkhead to the engine bay in the "run" position of the switch. This wire, often "dark blue" also known as IGN1, is hot ONLY in run. ONLY. It is NOT powered during cranking. This wire branches off and depending on year/ model, feeds ignition system (ballast), voltage regulator, alternator field, some smog devices some years, idle solenoid if used, and electric choke if used.

There is ANOTHER wire that is hot during cranking. This wire is normally brown, also known as "IGN1". It is hot ONLY during cranking and only goes one place........from a special contact on the ignition switch, through the bulkhead, to the coil + side of the ballast resistor.

It feeds full battery voltage to the coil during cranking, and backfeeds through the resistor to power the electronic ignition.

Likely it is running off IGN2, and when you release the key, the "run" voltage is not there, due to a wiring error, broken wire, etc.

THIS SHOULD BE EASY to troubleshoot.

Download a wiring diagram and or shop manual for your car, free, from MyMopar

Check with key in "run" position and see if the VR IGN post has power. If so, then the IGN1 "run" is getting from the ignition switch to the VR, and now check coil + You should get anywhere from 6--10V at the coil.

Now check the power wire on your electronic box and see if it has power. It should be pretty much full battery voltage.