Two: turn it off and dial the reed of the jack with a toothpick.
Three: plug in headphones, turn on iPhone, listen to music, press stop (not at home), press Home, unplug headphones, turn off and turn on.
Four: Press and hold the home+sleep key for a few seconds until the system restarts.
Five: Poke it gently in the earphone space with the return pin.
Six: Restore the initial settings in the settings.
Seven: Insert a cotton swab and turn it over again.
Eight: First of all, the restart I mentioned before. Pay attention to hold down the two keys until a white apple appears on the screen. Before the white apple appeared, the word "slip off" appeared. Ignore it. Continue to press and hold the two keys, and the screen will be black. Then a white apple appears, releasing two keys.
Nine: Insert the earphone when there is no music playing, press the power off button at the top (just close the screen), press it again, slide to unlock, unplug the earphone, and the earphone mode will be released.
Nine: If the above methods can't be solved, try to restore the iPhone to the factory settings. However, before restoring the factory settings, you must remember to back up the data of your mobile phone.
Note: Finally, it is not ruled out that there is something wrong with the hardware of the iPhone, and you need to go to Apple staff to help you repair it.