Please Help! 5 Speed Transmission Wire Location

I have a 2000 5-speed transmission celica gt. My speedo/odometer/cruise stopped working one day, I thought it was the speed sensor. I changed the speed sensor and it did not change a thing, but I did however find a wire that is not attached to the transmission anymore. I do not know how to reattach it...If anyone has similar set up and could take a photo for me or have a diagram or some sort of info on how to reattach the wire to the transmission, I would be immensely appreciative!!