There are too many unknowns here.
Is the SSD from the broken laptop the original Apple OEM SSD? Or a third party SSD?
What is the system firmware of the eBay laptop and version of macOS which was installed on it?
Did you carefully examine the SSD for any signs of damage?
Plus, were you able to confirm this eBay laptop even works before trying to install your SSD into the laptop?
Here is the OWC Envoy Pro Enclosure that is compatible with the proprietary Apple OEM SSD from MBPro Retina 2012 and Early-2013 laptops:
https://eshop.macsales.com/item/OWC/MAU3ENVOYPRO/
FYI, iCloud is not a backup although in this case it may have made things easier for accessing the data. iCloud is just a cloud based file syncing service. You make one catastrophic file edit on one device, and that catastrophic file edit is transferred to every other copy on every other device connected to iCloud.
People should always have frequent and regular backups of their computer and all external media (including the cloud) which contains important & unique data. It is very difficult to impossible to recover accidentally deleted data from an SSD after the Trash has been emptied. Plus there are a lot more new ways to permanently lose access to the data stored on the internal SSD of the recent Macs due to all the hardware, software, and security changes.