If your PS4 controller won't charge, you can try swapping out the charging cable or checking the charging port. You can also try resetting and re-pairing your controller, or performing a power cycling ...
If you have a PlayStation 3, you have a console that may be a generation old but that still has some excellent games well worth re-playing. And you can play those games using the DualShock 4 ...