You'll want to replace your power adapter if the wires are bad but the more common problem is that the power jack gets broken (which results in a loose connection). I'll suggest replacing the power adapter but, if you have that same problem afterwards, then you can be assured it is the power jack itself (repairable most of the time)