Well my friend was bringing me driving to practice before my road test. We pulled over to the side of the road to practice a y turn, and the brakes started to pulsate. We didn't think anything of it. I put the car in reverse and it shut off. I put it in park and then turned it off. Turned it back on and put it in drive, it turned off again. I called a friend and he said to rev it up in each gear. we got it going finally, we started driving and the brakes went out at a stop sign so i pulled the e-brake. My mom and dad came and got us and we had to tow it back to the dealer. Any help on what happened? Is it fixable? What do I do if it happens again, how do I get it to go?