Hi and welcome to JustAnswer,Thank you for the question and your patience. Should you still need assistance for information purposes only...Initially, bear with us; re-confirm and post back with the complete model number of the printer.
Still depending on the version (very important), the power cord may be faulty and therefore would need replacement (if the plug-in type). Otherwise it would be the internal power supply board assembly similar to the part shown HERE that would need replacement.
Are you then considering a DIY (do-it-yourself) repair approach? If yes, do you have access to and familiar with a multi-meter and even perhaps a soldering iron?
Please post back how you would want to approach this and/or should additional information be needed.