The vehicle infotainment system froze. Several minutes later after driving, I pressed the brakes but they did not function. The vehicle would not stop and crashed into the vehicle in front of me. Emergency braking did not engage or otherwise show signs of activation. After turning off the car and dealing with the accident, I restarted the vehicle and the brakes and infotainment system operated normally.