Ipod Restarting


My ipod keeps restarting, a couple of times the low battery icon has appeared on the screen, but when i connect the power cable the apple logo stays on the screen and it doesn't appear to be charging, i've also tried connecting the ipod to my compuer but my mac never picks it up and the ipod just keeps restarting