The microphone icon switching constantly to headphone

Please help me everyone, as subject, when I place a call the mic icon on the left corner constantly switching to headphone icon, the volume icon on the right hand side also goes unstable and there was a weird sound when I place a call not like a normal tone. I'm really confused with the issue since I never use a headphone recently.