My Nexus 5 is only working when it is charging what could be the issue

Forum statistics

Threads
938,651
Messages
6,890,397
Members
3,156,324
Latest member
cb_2367