Thanks for visiting Apple Support Communities.
If the sound on your iPod nano isn't working reliably, the first 5 steps in this article can help:
iPod nano (5th generation): Sound through speaker with headphones connected
If you have a different generation iPod nano, this article will help with resetting it:
How to reset iPod
If these steps don't solve it, try restoring the iPod:
Restoring iPod to factory settings