Mac does not start and has tried to repair and enter the terminal

CAN NOT access recovery, no hard disk repair. I literally moved it to a new office at 20 & # 39; and now when I turn it on it starts up and makes it about a quarter of the way during / after the Apple logo and then automatically shuts down. It enters the terminal and allows external selection, but none of them works. I'm running Sierra. Is the hard disk damaged? Is there any other way than throwing it out the window?