While backing out of the driveway, the brakes failed. In an attempt to stop the car from continuing into on coming traffic, attempted to put the car in park. After moving the gearshift into park, the car continued to roll into on coming traffic. The C-Max struck another another car and continued to roll until it was stopped by a small retaining wall on the opposite side of the street.