My deck in my car will work but when i start driving it turns off and wont come on till im stopped

please if anyone has ny further questions concerning this situation or advice please contact me at
-Thank You

Pull the radio out and check to see if the ground connection is good. On some older cards the ground is a braided strap that is screwed into the firewall and it can become loose or oxidized.

Does the radio part play or does that stop also?
If so it is possible that the deck is wired incorrectly pull it out and with the engine running check that power is getting to it, if not find the correct wire to connect to. If power is getting to the deck investigate if vibration on the move is the problem.
Welcome to freaks.