Have you removed the top of the washer?
In most cases simply cleaning the inside of the washer soap compartment where the jets are would have probably resolved this issue.
Please can you provide a image of what your seeing and what wire has come lose (was it from a plug on the PCB itself, since it may be wise to get an engineer to attend and make this reapir if you are unsure where the wire came from.
There should be a paperclip icon for you to attach an image, if no you can upload the photo here, and post the link within this chat window.
I dont believe the steel wire connects into the programme selector, there certainly isnt any reference to in on the engineer manual.
I would have thought the wire must connect into a actuator near to the programme selector, are you able to send another photo of where the other end terminates within the water valve.