Why isn't my charging or being recognized by my computer?

my phone won't charge or be recognised by my computer

I left my phone on to charge overnight and woke up to it not being able to turn on. I have tried connecting it to my computer but it does not recognise it. I have cleaned out the charging port. The lock button does not work either can somebody help me please!
Re: my phone won't charge or be recognised by my computer

Is an iphone 5 btw
Re: my phone won't charge or be recognised by my computer

Use another cable and try charging again, using the Apple supplied charger.
Re: my phone won't charge or be recognised by my computer

Hasn't worked
Re: my phone won't charge or be recognised by my computer

Dead battery? My iPhone 5's battery is about gone. It acts weird some. You may just need a battery.
Re: my phone won't charge or be recognised by my computer

How much would this cost?
Re: my phone won't charge or be recognised by my computer

How much would this cost?

Battery replacement at an Apple Store is about $80. I don't know if there's any cheaper.

Original thread: https://forums.imore.com/threads/why-isnt-my-charging-or-being-recognized-by-my-computer.332189/