I remember having exactly this problem with my 5 when I attempted a repair - I had to replace a dead microphone near the camera, and changed the battery at the same time.
I cured it eventually but annoyingly I'm struggling to remember how. I think it have been as simple as disconnecting the battery again for a minute or two and then reconnecting.