You should be able to swap the lock wafers out to a new barrel. What lock barrel is it?
If it is the front door lock and you can pull the barrel out I imagine the lever on the inside which actuates the door latch has fallen off, its held on with a small screw and a spring for lock return purposes.