When the mic isn't working launch alasamixer ( alsamixer -c0 for full view) Check and record all the settings to compare against when the mic is working.