You posted with a CD drive problem but now it seems you've transferred an operating system on a HDD from another computer!
This is a practice that will mostly end in failure.
"[i]The drive was working fine, I transferred one hard drive with Windows XP installed into a different computer. so i stripped most of the drivers off so that i could reinstall when it was in the new unit.
Everything is now working fine apart from the CD/DVD Rom. It was working fine before it was uninstalled and i have also tried it in a different computer which worked?[/i]"
How many components have you transferred?
What do you mean "[i]stripped most of the drivers off..[/i]"
If the optical drive works in a different computer then clearly you have not installed the necessary drivers for it. Without knowing any details I can't give any specific advice other than find the correct optical-drive drivers for the new motherboard (as opposed to the old drivers) which is what I think may have happened.
Surely it would have been easier to replace the motherboard 'in situ'?