if both ends of your cable are still connected and the casing has come out of its end seat,,the cable is separated in the middle,..choices to fix it,..replace complete cable and housing..or go to a bicycle shop get a length of Teflon coated cable the right diameter,,take some wd40 and clean the existing housing good with a wire that fits the caseing..spray right into the end of the housing..then run new cable thru get the cable ends,,I think Lowes has them in the bolt department..if not I know Napa auto carries them..