I drove away with my car still plugged in & the 3 prong plug coming from my car broke off. How do I fix it?

It broke off right at the plug, so there’s still a good amount of cord coming out from the car (but no cord coming off the broken male 3 prong plug). Is there a specific type of replacement plug should I buy? How do I reattach it to the cord coming from the car?
6 answers 6