Welcome to the vintage-computer-wifi-modem wiki!
Sinclair QL BT631W to Male DB9 (which then plugs into your modem's female DB9 port):
1 to 5
2 to 3
3 to 2
4 to 7
5 to 8
6 to 4
Unconfirmed if should be cross over or straight through. One person tests cross over and said it's good, the other said straight through is good.