If it's an older drive, then a straight board swap may work. See the following resources for more information:http://www.donordrives.com/blog/pcbswapguidehttp://www.donordrives.com/hard-drive-pcb-donor-swap-matchhttp://www.donordrives.com/services
Otherwise, if it's a newer model, then be aware that most modern HDDs store unique, drive specific "adaptive" information in a serial EEPROM chip. This chip, or its contents, needs to be transferred from patient to donor.
The following PCB suppliers offer a firmware transfer service, either for free, or for US$10: http://www.donordrives.com http://www.onepcbsolution.com http://www.hdd-parts.com
I would advise that you avoid those suppliers who don't tell you that a board won't work without modification. Often they will attempt to obscure the requirement for a firmware transfer by deceptively describing their products as being "for data recovery only".
Alternatively, if you are not adept at soldering, your local TV/AV repair shop should be able to transfer the chip for you.
Onepcbsolution.com also offer a firmware transfer service for US$20 if you have purchased your board from a different supplier: http://onepcbsolution.com/firmware-xfer-without-pcb.html
Some PCBs do not have a discrete serial flash memory chip. Instead they store the adaptive data inside the Marvell MCU (the largest chip). In this case you will need a "PCB adaptation" service.
The following PCB supplier includes such a service for free: http://www.donordrives.com/services