If you are facing power issue in the wall socket or an power strip, you can perform some simple tests to ensure that its working.
Steps to check
1. Unplug all computer, monitor all other components from the wall socket.
2. Take a device which you know works well and connect it to your wall socket. If your device goes through then you can ensure that your wall socket is working as expected.
3. If your using power strip, check all the terminals of the power strip to ensure that all the terminals are working fine.
Replace your power strip even if a single terminal is not working. This is to ensure that the other terminals also does not start to malfunction.
If you come across any power failure in the wall socket, call an electrician to take care of it. Do not attempt to rectify by yourself as you will be wiring with a live wall socket. In the mean time you can move your computer to other place, where the wall socket is working fine.