Do you have all the orb pieces & escaped the prison? If so, take a bucket of tar if you don't already have it in the machine room (on your left hand upon entering the chancel opposite to the collapsed bridge). Go to the barrier, put the tar in the pillar-thing, the place the orb pieces. Then go to the machine room and jam the cogs with a rock. Then go to the barrier and enter the Inner Sanctum.