If the computer is under warranty, call Apple. Many times the computer will shut down to protect itself. If you added any third-party stuff, like memory, etc, remove them, and return the Mac to its factory specs.
I am not sure on the G5, but on the G4, there was a button on the mother board to...