The Ryzen 5 2600x processor uses the AMD "AM4" socket.
So, you would need to use a AM4 socket motherboard and RAM from the QVL list for that specific motherboard that you choose to use.
(RAM selection is very important with the Ryzen processors, so use only qualified RAM)
Your CPU cooler may work if an AM4 socket bracket is available from the vendor.
The ROG STRIX H370-F Gaming motherboard uses the LGA 1151 (Intel only) socket. The Ryzen processors will not work on this board.