Help, car keeps dieing

Try wiggling the bulkhead plug (the plugs with numerous wires that pass through the firewall. I've seen lots of electrical issues there. If that checks out ok and your reasonably certain there's no electrical connection problem all that's left is the alternator and regulator and either will cause your problem and there's really no way to say for sure which one it is but the easiest thing to do is take the regulator off and take it to your local auto supply and have them test it. Nowadays almost all auto supply stores have a tester. If the regulator tests good the next thing to do is have the alternator tested.