Cybug43 :
@metalicgeek us it was working perfectly until it suddenly froze and I rebooted it. After the reboot this happened. Gonna try the thing with the hard drive and SATA cable but can you tell me what do I do if it worked and what do I do if it didn't?
If it works, backup your files from it then reformat it. You may be able to use it to run Windows again, though it may be damaged and I don't recommend it for the most part. If it does not work, then it's dead, and you should go buy a new one.
If it works in the desktop but not in the laptop, there is a possibility that your laptop's SATA port may be damaged. Try a different 2.5" hard drive if you can find one. Otherwise, have the laptop serviced.