Weird...
What is really weird is that BOTH devices fail...
IBM HDDs are usually left as master at factory default. Better replace these jumpers, if you changed any. There's no need to change them when building a system from scratch.
The ATA-100 HDD needs the special, 80-thinwire IDE cable that comes with the mainboard.
The CD-RW drives are usually left as slave at factory default. If you really, really want it as master, check the jumper(s) in the back of the drive (usually there's a sticker for reference).
I think you should first replace the jumpers at factory defaults for both the CDRW and the HDD. If you are going to put one device in each cable, you really don't neet to change nothing.
Go to the BIOS page where the HDDs are setup. Search for a table with some 4 or 5 rows. In the TYPE column put all rows to AUTO or AUTODETECT. Then at boot it should detect everything you connect as long as there's no master/slave conflicts (for each IDE cable).
Are the 4-wire power cables connected correctly ?
Try connecting ONE device each time...
Can you try your new HDD/CD-RW with other computer ?
Re-check your motherboard manual... maybe there's something hidden...
Good luck...