Craftsman garage door opener not working


Garage opener was working fine, but now it is not working somehow. When i press remote button, it has click noise. Only click click noise. Tried to set up again with remote. Didnt help,
And i saw purple cable sticks out from the thing in top. Is it like that or somethin was cut, sure nobody touched it lol. Just wondering.
Any advice please thanks