Although CDs are still the preferred method of audio distribution, CD players are quickly being phased out in lieu of MP3 players. If your old CD player stops working, it might be a little panic-inducing, but fear not. If the CD player turns on but does not play CDs, then the problem is not with the power cord or the circuity (which are generally more expensive to repair rather than fix) but with the lens. There are several troubleshooting steps that you can take to fix a CD player when it won't play.
Remove excess dust from the CD player. Dust is the number one enemy of electronics, and it can corrode even the most resilient device. Make sure to dust in between buttons, knobs, power cord(s) and audio-out ports. Note: use a dry duster, as moisture will harm your CD player further.
Use a disk-based lens cleaner to remove ground in dust or dirt from the CD player's lens. These lens cleaners look like a regular CDs, but have specially-made bushes on the reverse side that gently remove excess dirt from the CD-reading lens. Simply put the CD in your player, and press the "Play" button to clean the lens. Do not run the cleaner more than once, as excess brushing can cause scratches on the lens.
Polish the lens. Use a glass or eyeglass cleaning solution and a lint-free cloth to gently polish the reading lens. Clean it by using a low amount of pressure and softly polishing the lens and its surrounding area using soft, circular motions. Do this for about a minute or two and then allow the player to sit for a few minutes before trying to play a CD.