You need to check the power, ground and any connections that might be the cause.
Usually there is an Illumination (Orange) wire you might have to hook up to your lighting).
Depending on if hte CD player is new or used, and depending on if all the power and signals are good. You may even have a defective unit.
hard to say, You should try the headunit in another car or another power source if needed.