Currently Being ModeratedMay 5, 2013 6:50 AM (in response to revwaynet)
Clean the headphone jack and dock connector.
Basic troubleshooting from the User's Guide is reset, restart, restore (first from backup then as new). Try each of these in order until the issue is resolved.
If the issue continues, take the device to Apple for evaluation and possible replacement.