I have this problem sometimes with my iPod touch, here are my solutions.
1st - Make sure your using the iPod touch cord, my iPod Nano cord is able to charge my iPod touch, but it doesn't let it be recognized by iTunes.
2nd - Make sure your usb drive on your computer is functional, to do this plug something else in it like a USB, or an external hard drive, or even a cooling fan; just to make sure it works.
3rd - If all else fails try it on a different computer and see if it works there.