I need help with Samsung M2 open case

My 500 GB Samsung M2 USB 3.0 recently stopped working. When I put it in a USB slot, it still lights up but no spinning sound. Also, my desktop does not detect it anymore. Would you recommend if I open the case and plug it directly into my PC via SATA? I need feedback with Samsung M2 open case. Thanks.
