This usually happens when a DAW that uses Asio4all is running (for example, FL Studio), which monopolizes the audio of the system, because other programs besides that program become unable to play or record sound.
If you use Asio4all, do not use the playback device as Asio4all in the program. If you change the device to something like "main sound driver", you can record normally.
For example, in FL Studio 12.0, go to Options-Audio Settings and set it to "Main Sound Driver" as shown below to play back.
Asio4all must be used when using DAW inevitably due to problems such as MIDI keyboard latency.In this case, use Asio4all only for work and stop the Asio4all by changing the playback device to DirectSound at the end of the recording. You need to record.