Hi my name is ***** ***** i will be assisting you today.
please tell me the make and model number of the phone
thank you for confirming.
open the cover and remove the battery
now press and hold down the power button for 30 seconds without inserting the battery
i hope the charger is not connected
follow the steps
after 20 seconds release the power button and insert the battery and close the cover
turn on the phone
i am sorry must hold down the power button for 30 seconds
still showing the earphone icon?
we will have to hard reset the phone and you will loose your contacts and apps installed/
backup your data and other apps
click on the link and follow the steps to backup your s5
after backing up then follow the reset steps i will give you now
see the youtube video i have attached how to hard reset your phone
I hope I've provided the information you were seeking. If you are happy with my service, effort and the Information you got, then provide a rating by clicking on the smiley below and if the solution has not worked please don't rate negatively Instead reply me so that i can continue to help with more troubleshooting steps to fix the problem.
I am sorry to know that the steps and video which i gave didnt help.
It only works if the problem is not with the hardware, let me know if you have further questions or need any help.