The old battery died completely.
Replacing the battery was easy thanks to iFixit but the problem was the home button is also not working anymore. Since it's a jailbroken phone I installed Activator and used a double click on the sleep button to simulate a home button action. Then I went to erase all . . .