OP Amp not amplifying audio signal

Put a large resistor from the + input of the left opamp to ground. Say, like 470kohm.

The DC bias from the microphone is getting through to the opamp. The TL071 has very high impedance inputs. The tiny bit of DC that leaks through the first capacitor is enough to push that input away from 0V. The amplification then drives the output to one of the rails.

Just noticed something else.

The microphone bias is messed up.

You need that 1k resistor between the microphone and 5V

As you've got it, the microphone is trying to pull the 5V source up and down in response to the sound.

Best case, it doesn't work.

Worst case, you've killed the microphone.