It is cable , if the cable end has come off the cable can be swapped for new or used one.
It is uncommon for it to just fall out as has a plastic tab but if its been pulled out in the past that tab may be gone.
Otherwise its the lock mech part in the door .
Swap that as well then.