The plain enclosure. A desktop box or a third-party caddy has a separate bridge board with a SATA connector for the drive. When the socket, the regulator or the bridge chip fails, the drive comes out and is read on its own SATA connector. The box is beside the point, except where it wrote the drive with its own sector translation, which is undone on the image.
The native-USB drive. WD Elements and My Passport, Seagate's slim portables and most Toshiba Canvios have the USB socket soldered to the hard drive's own circuit board, and no SATA connector at all. A torn socket or a blown regulator is repaired on that board under magnification, tracks rebuilt where they lifted. Where the board's USB chip has failed, a donor board of the same revision becomes a carrier for the original's ROM chip, because the ROM holds this drive's own adaptive data and no other board will read the drive without it.
The encrypted WD board. On My Passport, My Book and easystore the same board carries the encryption engine and its key. The repair has to preserve the board, or read the key material out of it and apply it during imaging. A donor board on its own gives a drive full of noise. That is why the case of a dead WD drive is never thrown away, and why a shop's PCB swap on one of these is the wrong repair.