Question: how do i transfer data from an old hard drive?
Answer: You can use a USB hard drive enclosure, which is a special “box”-like device that you slide the old drive into. ... 
You can also use a USB hard drive adapter, which is a cable-like device, connecting to the hard drive on one end and to a USB in the new computer on the other.