Default Problem with charging.

My phone is only charging in switch off mode.
I cant charge it while it is on.
And it is not connecting to PC as well.
What should i do to fix this.?
I'm on color OS 1.2

Sent from my A110Q using XDA Premium 4 mobile app