Even though you can flash new images, it might still be worth to try charging with a different cable, and with a different charger, and with the cable rotated the other way. I had a cable that seemed to work one way but not the other.
You could also check that “sudo dmesg -w” says when the charging cable is connected. For me, that shows the following lines repeated a few times:
The Librem 5 is a bit fussy with the cables used. I have one cable here which charges my Pixel and does not charge my L5. Another cable I own charges both. Try different cables until you find one which works.