If your PS4 controller won't charge, you can try swapping out the charging cable or checking the charging port.
You should clean your PS4 occasionally to keep it running smoothly and to avoid overheating and hardware failure. Here's how to properly clean a PS4.