Hi @luxm ,
After many years of not being used or charged, most likely the battery has become depleted beyond recovery and needs to be replaced.
Here’s the section from the [https://www.manualslib.com/manual/1334292/Htc-Wildfire-S.html?page=14#manual|user manual] that shows how to remove/replace the battery.
Replacement batteries are available online. Just search for ''HTC Wildfire S battery'' to get results for suppliers that suit you best.