Do you mean CD player -- like you'd connect to your hifi ?
Could be the laser -- are there any other symptoms -- sticking drawer. Skipping.
Repairs can cost more than a new machine.
Before dumping it, open the case (with power disconnected) and try cleaning the laser lens.
I use a cotton bud and a gentle cleaner like alcohol or isopropanol. Gently rub the lens in a circular motion while holding the cotton bud stick at the dry end. Then reverse the stick and dry off the solution with a similar motion.