First I'd check the fluid in the master cylinder. If it's low, you could have blown a brake line, and that would have caused your sudden loss of braking power. If that is the case, the line will need to be replaced and the brake system bled before you can drive the car again.