If the phone won’t charge or power on after charging, consider replacing the battery (especially if it’s an older model).
There may also be internal hardware failures due to long-term inactivity. For instance, components like the motherboard, screen, or internal connections could be damaged or loose. If the phone has been left in a humid environment, moisture might have damaged internal components, leading to power-up issues.