This sounds like you have some kind of electrical issues. Not knowing anything about the car I can''t suggest where to begin looking. Just look online for people with similar problems or take it to a mechanic.
If your car is running okay for a few days then it starts giving you problems you would have a transmission problem. You will need to get a new transmission.