You need to assign a key for voice communication in the game's controls or settings. Once that key is set, your microphone should work when you press it.