Check inside to make sure it's plugged in. Then after you restart check in the bios and see if it recognizes it.
If that helps, check to see if there are any driver updates for the CD-ROM.
If that doesn't help I'd recommend plugging in a different CD drive to see if that one works properly. If that works I'd then toss the malfunctioning drive since they are so cheap and not worth repairing.