Laptop Broke

Not very knowledgeable about these but could it be the battery is bad?

No it's not the battery. The battery has been dead over a year I ran it off the power cord.

The hard drive is ok because my son put it in this laptop to check it it worked fine. So it's in the motherboard or the on and off switch. It's over 2 years old and isn't worth fixing.