If your microphone doesn’t work even after you tried several workarounds, you may have a hardware defect, so open ticket and get it replaced under warranty.
This is a different issue; with the latest software version you can recalibrate the proximity sensor to fix this issue.