No discs? Then you have to lean on your backup and restore skills. There is no magic to make a machine start working when it loses a drive or OS. The G5 is pretty old so along the way you must have thought of and made backups and more.

If the drive has failed, some get upset at the obvious but here goes. Replace the failed drive, restore from backups.