Your computer suddenly turned-off and won't turn back on could be a possible result of a faulty power cord. You can use a multimeter to test for a potential open circuit. If there is sufficient electrical connection, the multimeter will beep, or else it would probably mean that power cords are faulty.
Continuing to use the faulty power supply can result in damage to the computer and should be replaced immediately.
A damaged battery can also interfere with the computer's startup process. Try removing the battery, then starting the computer without it.
When your PC won’t turn on, it can be hard to know where to start fixing it. Modern PCs are complex machines, so it might not be immediately obvious where the problem originates.
There are some most common solutions for getting your computer up and running with that spectrum of problems in mind.
1. Try a different power source
2. Try a different power source
3. Let the battery charge
4. Check your display
5. Check your BIOS or UEFI settings
6. Try Safe Mode
7. Disconnect everything non-essential
8. Make sure nothing has come loose
9. Check for ransomware or a virus