Why can nobody hear me when I call them?

I had spilled a little bit of food on my iPhone 6 and it was stuck on headphone mode so I looked up how to fix it and I found where you can use a Q tip so I tried it and it fixed it but now when I call someone they can't hear me unless I have it in speaker or headphones in. Can someone please help

Try plugging headphones in and out around 10 to 12 times finally unplugging then see if someone can hear you, doing the plugging n unplugging should fix the sound issue