A strange problem with the microphone

When connected to a PC or laptop, the microphone does not work properly. When connected, it shows that everything is normal, but it does not work until you turn it off and turn it back on. Everything works fine from the mobile at once. What is the possible problem.