There is not enough information in the question to tell if this is a hardware or software problem, but that is not a problem.
You can troubleshoot it easily.
If this is a hardware problem the CD-ROM would not have worked in Linux. If it didn't, consult the installer of the CD-ROM, if it did then the problem is in the not quite compliant interface of some CD-ROMs.
You did not state the model name and manufacturer. Fortunatly there are only two main methods to overcome this problem.
Since youreformatted the HD it is blank.
The first method (most common) is to reformat the HD and add the command to make it a system disk. Copy the driver for the CD-ROM to the root directory of the HD.
Add the command to config.sys on the HD to run the driver. Cold boot on the HD.
About half the time this doesn't work, if so.
Copy mscdex.exe to the root directory. Cold boot again. If no go, add the mscdex.exe command (With all proper switches) to Autoexec.bat. If still no go, (Second method starts)edit a Win98 Startup Disk by adding the driver to the config.sys of the floppy. (Make sure you add C:\driver.sys not just driver.sys, and of course don't forget any switches.) Cold boot. If it still doesn't work, email me. (There are more work arounds)
The necessity of the driver is usually caused by excessive cost cutting by the CD-ROM manufacturer. (It can also be some odd feature.)
Regards, Chris