This happened to me before and here's the steps I took.
1. Reinstalled Windows onto a different drive.
2. Formatted drive that is not being detected
3. Changed Sata Cable.
4. Booted up system and downloaded Windows migration software and migrated Windows from Hard drive to SSD.