There are a few wires and switches in the door handles.
There is one that tells the car the door handle is out, it sounds like that one may have a break.
There's also one that tells the car the door handle is in.
Then there's the paddle that moves the handle in and out.