Electrical Questions? Ask an Electrician Online.
From those you will have;
L,N and E in
L,N and E out
L and SW from the light switch
L and N to the light fitting
With the power on you should only have one live, this is the loop in.
The N and E from these should go into the block.
Next turn on one of the other lights that normally work but have stopped, if you get one of the other reds and touch it to the live one the other light should come on.
When you have found this then the N and E from the same cable can go into the same connector as the first cable - the is the LOOP OUT.
You should now have the switch wire left, this goes into the L from the loop and the return wire goes into the L of the light fitting.
All remaining N and E get terminated with the same colour with the LOOP In and LOOP OUT wires