Could you check you have the microphone input selected as audio input?
It does this if you have it set to something else (meaning line in, or an audio device connected etc) because the device controls the input. You might want to check the audio button bottom left, and possibly your System Prefs>Sound>audio input.