If It a dell or hp and it under the on year warranty call or email there customer support line with your issue. Most times they run some diags online and if they think it your hard drive they will mail you a drive or if you have in home service send a tech. Or there give you a list of local repair shops. If they can't find an issue the drive the level one tech may have you run the computer restore. It wipe all the data off the drive and put the factory image onto the unit.
If it your older pc you have to check to see if t pc still under warranty.
On the pc that having issue run hdtune read the drive smart info look for errors. Use seatools or wd tools to test the hard drive. Run memtest86 to test your ram. Run malware byte scan and check that your anti virus is up todate and running.