Actually that shouldnt be a wire, more like a hose. There are 6-7 of them that operate the doors to switch between floor, vent and defrost settings. They are all different colors though so there should be another loose end that hooks to that one, that is the same color. That should be your problem as long as its the only one loose. Looks like whoever did your heater core was a bit careless.