Welcome to the community, @akakazz21!
To add to what @BadAsAl said, it simply won't work because your old HDD holds the OS from your old PC. The operating system, though, is tied to the motherboard of the computer, this is what makes the drive unbootable from another PC. You need to install a new genuine Windows OS onto the new PC and/or simply plug the old drive as a secondary storage, without unplugging the HDD that came with the PC. If you need assistance with the install, here's a tutorial about How to set up & mount your HDD in the system
If you plan to use that old drive, make sure you backup your data
and then re-format it
, so you can get rid of the old Windows installation.
Hope this helps. Keep us posted if you have more questions!