Hi:
You will have to install a new hard drive and reinstall the operating system.
Below is the link to the service manual, where you can find the hard drive removal and replacement procedure.
h10032.www1.hp.com/ctg/Manual/c04653884
You may want to consider replacing the 2.5" mechanical hard drive with a better performing 2.5" solid state drive (SSD).
After you replace the drive, you can reinstall W10 by making bootable installation media using the Media creation tool from the link below.
Download Windows 10 (microsoft.com)
After W10 has completed installing, you can install the drivers and available software from your notebook's support page.
HP Notebook - 15-ac121dx Software and Driver Downloads | HP® Customer Support