What's wrong with your ipod when it only play on the charger?
Perhaps the battery is exhausted (come to the end of its life). If so, you will need to have the battery replaced.
By the way for future reference, the iPod Classic does not use iOS.
Retrieving data ...