In my understanding the problem is that the coil of the relays is 5V, that is what I understood, and the GPIO outputs of the RPI are 3.3V, of course since it is a module, it has an optocoupler, but it must be 5V at the input.
Try first and foremost to be sure that the GND are connected, GND module and in the RPI GND
Please, connect a serial LED between the RPI output GPIO and the relay input module.
Let me know if it worked and post here, then I will try explain the problem, which is not software but rather hadware, attachment drawing, This is my point of view.
Observe the correct polarity of the LED in series, so that it works correctly.
Good luck,