The red,black and earth is your live and switch live which comes from the light joint in the ceiling. The red,yellow blue is your link cable between the 2 switches, and is needed to make it work 2 way.
There is no way, without a dangerous bodge, of making it work properly again, without...