mic does not work while headphone plugged

my mike doesnt work while i plugged my headphone to my i phone. i checked with other i phone but its working good. is it problem in the slot of my phone?
First I would make sure the port/headphone jack is clear and clean. If it's working on one phone but not the other and the previous solution doesn't work, I'd have apple run a quick diagnostics or inspection done on your device.

Original thread: https://forums.imore.com/threads/mic-does-not-work-while-headphone-plugged.368939/