Question: how to transfer files from broken computer?
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.