How are you determining that the wires actually touch?
If you are simply connecting them to two inputs and digitalRead()ing them inside loop() then you might get erroneous results because of the contact bouncing - these need to be debounce.
Or you could set up one pin as interrupt and the other as a 5V output so that whenever they touch an interrupt is generated.