Built-in DVD drives are backwards compatible to CDs, so they actually have two lasers in them -- one for the CDs and one for the DVDs. It is possible for either, or both, lasers to go bad, resulting in the situation that you can read one or the other, but not both.
First off, I would try the media in another PC to confirm that ALL of them can be read.
Then, I would look online for an optical drive cleaning kit. These consist of a plastic disk with filaments sticking up from it. When the disk spins, the filaments brush against the laser lenses, cleaning them of dirt andm gunk. In order PCs, especially those that relied a lot on optical media, this is a quick and cheap way to get the drives working again.
IF that does not work, you're probably looking at replacing the internal optical drive -- and that can be expensive for older model laptops.
***If my post helped, click the White thumbs-up symbol to say thanks***
***Please mark Accept As Solution if my post solved your problem***
I am a volunteer and I do not work for, nor represent, HP