If your PS4 controller won't charge, you can try swapping out the charging cable or checking the charging port.
You can play PS3 and PS2 games on your PS4 or PC by signing up for PlayStation Now, Sony's game streaming service.