Welcome to the community.
As you said that you have replaced the hard drive which is not detected in bios, kindly follow the below steps:
1) Try connecting the hard drive to different SATA ports on the motherboard.
2) Swap the hard drive data cable with the DVD drive data cable and check if the hard drive is detected.
After each steps verify if the hard drive is detected in BIOS.
Waiting to hear from you.
Thanks & Regards
Dell Social Media Responder