Battery Low [Q] Help please..

My CHD doesnot charge properly in switched off state.. when cable is connected, it shows charging symbol and charges only for 5 seconds then charging stops.. ( i think it goes for USB degugging mode!) then again it starts charging..
But when phone is in switched on state, it charges normally.
what will be the problem guys?