Hi and Welcome!
assuming this is a IDE (PATA) HDD, this depends on the configuration you want to have:
As second drive on the same cable:
If the old drive is configured as master (jumper), then the new one must be set as slave.
If the old drive is configured as Cable Selsct (jumper), then the new one must be set as Cable Select also.
As second drive on a different cable:
Configure the drive either as Master or Cable Select (if there is no other drive on that cable) otherwise see above.
Additionally, check the HDD manufacturer's support website for installation instructions.
Next step would be partitioning and formatting. For this, check the documentation of your operating system.
Edit: Depending on the age of your computer, the 48 bit LBA problem might apply. See www.48bitlba.com for details.