Computer won’t power up but lights go on

When I turn on my computer, the fans spin for just an instant, and the front panel LED and the LED on the main board remain lit, but the unit won't turn on. It had been running fine one night, and the next day it was like this. I replaced the small battery on the main board but that didn't help. Could it be the power supply?
