I'm guessing it's a desktop that you are referring to so it's pretty easy.
First of connect all of your connectors to the drive (sata power and sata data)
boot up your computer as it SHOULD be recognized by your MoBo automatically.
now you need to do a partition so:
Click Start, right-click Computer, and select Manage. This will bring up the Computer Management program. Once there, click Disk Management in the left pane, under Storage.
This will display all of your internal drives. The new one should have a black rather than a blue bar on the top. And it should be described as Unallocated. Right-click that drive, select New Simple Volume, and follow the wizard.