How do you restore power in the basement in Outlast?

Quick answer: Start the two pumps in the rooms near the generator, then go to the far room and pull the power lever. Go back and start the generator.
Show walkthrough (quest spoilers)
Check the generator
Take the stairs near the elevator down to the basement. Squeeze through the crack in the wall for a document, then find the generator. It tells you to start the pumps first.
First pump
Go past the generator and through the door on the right by the stairs. Start the first pump. A patient comes to check the area, so hide in a locker until he leaves.
Second pump
Move to the next room and start the second pump. Stay in the dark corners if a patient comes in. One indicator light is now left on the generator panel.
Power lever
Go through the door ahead of the main terminal and follow the path toward the power station, taking the right turn at the fork. Pick up the batteries on the way. The last room has a lever: pull it to turn on the power.
Start the generator
Backtrack to the generator and start it. If patients chase you, run and break line of sight. Then go back upstairs to finish the Administration Block walkthrough.
