Try switching off at the "mains". Remove the power plug to your PC and reconnect, making sure you push it in firmly. Switch on the 'mains' and try again. If it still fails it might be the PSU failing.
iPhone 7 review: a range of small updates add up to an excellent phone