Have you tried resetting your device: Hold down the Volume Down and Power buttons at the same time and continue to hold them both down until the Apple appears (up to 30 seconds). Once the Slide to Unlock screen displays, try again to see if the issue is resolved.
Also, make sure there is no debris in the connector port preventing it from making a clean contact. Be sure to push the connector in firmly.
Cheers,
GB