Sound: No output or input devices found
Reboot the computer and hold D to run the Apple Hardware Test. In my case, it said no issues were found, but after rebooting, everything started working again. Based on the comments, many others have had the same experience.

Thanks to Allan for suggesting the hardware test.