Erase fail

Hi, I’m trying to format my hard drive and it keeps failing and says something like it couldn’t be mounted?