Many boards switch off some SATA ports when an M.2 socket is used.
Some M.2 sockets share lanes with SATA ports. Filling the socket disables one or two SATA ports, and the drive on them vanishes.
The board manual lists which ports are shared. Move the SATA drive to another port, or use the other M.2 socket.
A free, read-only scan finds device problems, slow memory, wrong slots and BIOS settings, and explains each one.
Scan my PC free