You come on here asking for help.
Regardless of what YOU THINK;
the advice given about 5 wires is totally correct.
What I see in you pictures is a yellow wire, correctly marked with red tape to indicate it's a live wire and a blue and a black wire, correctly marked with red tape to indicate it's a live wire.
Somehow the
blue and black have become disassociated from the switch.
Do us all a favour and terminate the taped up blue and black in the spare terminal and try it.
THEN we can start with other advice IF it still does not work.
This is how it was wired when it was working properly:
View attachment 418403
Compare that with what you have now.
If you still have the green sleeving please put it back on the bare earth wires.
I will add: Well done for taking the 'before' pictures, it has helped us a lot knowing what was there.