the photograph with the switch shows 5 connections
the photograph with the three wires, red, yellow and green, is the other side
the two wires that appear to be broken go to the switch
that type of switch is likely a momentary contact type, either
normally open (contact made when push switch - that is, no connection except when pushed). or
normally closed (contact open when push switch - that is , connected, except when pushed).
normally open is more likely.
where do the wires that are broken go to?
experimental process:
connect the two broken wires to the two open contacts to the switch
if the device works, you guessed correctly
if not, swap the two wires, if the device works, you guessed better.
if it still doesn't work, something else is going on
caveat: there is always a chance, albeit small, that connecting the wires incorrectly can damage whatever they connect to