Try to lock the doors with the trunk lock. If it works then you have a problem with the driver's door lock. Since the infrared sensors works than you probably have a problem with the lock itself and not the wire harness. You might have to replace it.
Hope this helps.