Hi,
Welcome to the community
Few things to try ;
1. Re-seat all components and cables (Hard drive, Ram and Cd Drive)
2. Set Bios to Defaults (Restart computer, on Dell logo keep tapping F2)
3. Run Diagnostics (Restart computer, on Dell, keep tapping F12)
Let me know what happens after trying these. Regards,