Two HDD in my computer cannot be recognized

My motherboard is Gigabyte which has four SATA ports. I used two HDD in my computer one of them contained OS and another only for storage. But after replacing my processor it does not recognize any of my HDD. I have tried many times (changing cable, Changing HDD) but still the problem occurs.
So help me about it.
