First make sure the HD works fine, then there are more than one the HD connectors in the MB. Try the other one, If you try both (HD is fine and using other port ), the PC still isn't recognizing the hard drive then the MB is gone.
And if the MB is broken, then 1) you need buy the new MB from Dell. 2) Buy the new PC.