How do you fix a car trunk lock that won't open with the key or inside unlock lever but will open using the remote?

There is a can of graphite spray at your neiborhood do it yourself store , spray it into the lock area and wait, first you can try WD40.