You can run the sound troubleshooter which is one of the best method to fix this type of problem:
Run the sound troubleshooterto see if there are any issues. This automated troubleshooter tests and repairs a variety of sound playback and recording difficulties, so it might be able to help you with your microphone issue. Allow it to complete its cycle before checking to verify if your microphone is working.
Open Control Panel > Troubleshooting > Hardware and Sound > Recording, then click Next and follow the on-screen steps to run this troubleshooter.