My iphone thinks its docked?

So therefore can't play music on built in speakers. I found a way to temporarily resolve this issue by actually docking it and then taking it off. It will work for about a minute or two, then go back to thinking its docked. Any suggestions?

Added (1). Tried cleaning them out already… :/

Try cleaning the charger port & the headphone jack.

  • Would you vote for iphone 5s or iphone 5c? Both my wife thinks the same performance? So she wanted to buy iphone 5c, I do not know how to choose? What is your choice, just tell me. Thank you. I think I still prefer iphone 5s. Hee hee.
  • Who thinks the iPhone 5 is a waste of money? To me I'm a Windows and Android fan but I have heard that the iPhone 5 is a waste of money and why would you need to upgrade anyway its a ripoff. I have to use apple everywhere I go cause my school uses it for everything and its annoying apple. To me windows is easier to use well back to the question, Why do apple have to make the iPhone 5 complicated with a different docking input and why is it apparently a flop? IPhone 5 is apparently a waste of money?
  • Tell if its something wrong with iphone battery or its software bug? I'm noticing significant droppage in battery percent on idle condition at night, but when i do browsing, gaming, video recording it drains normal, why idle condition is consuming more battery than using?
  • My iPhone thinks I have headphones plugged in? It wouldn't play volume, so I went to go turn it up, and it said headphones were plugged in, so that's why it's not playing FROM the phone. Well, headphones aren't plugged in. I can't seem to figure out how to fix this problem.