Remove the trim screws from the edge plate on the door edge with a Phillips screwdriver.
Remove the trim screws from the interior side of the lock. Twist the thumb turn counterclockwise and remove it from the trim.
Remove the lock trim from the interior side of the door.
Spray the lock assembly and keyhole with silicone-based lubricant. Wipe any excess lubricant from around the trim with a dry rag.
Replace the setscrew, trim, thumb turn and edge plate. Engage and disengage the bolt several times to work the lubricant into the mechanism.
Repeat the disassembly process if the latch still doesn't operate properly.
Unscrew and remove the setscrew holding the bolt in place with a Phillips screwdriver. Remove the bolt.
Take the bolt to your home improvement store or a professional locksmith and choose a replacement of the same type.
Insert the new bolt and replace the setscrew. Replace the trim, trim screws, thumb turn and edge plate. Test the lock.