try to reboot the phone, if still it doesn't work. then check if your dock connector is damanged. [guide|3147|guide to change the dock]
open