look into the dock connector. do you see any loose or bent pins? if so, you can try to straighten them and move them back in place. if not, there is an electronic issue with your logic board and it needs to be replaced. there are
iPod repair guides that show you how to do that.