Com port

Hi,
I have Rewa G wiz and my problem is com connector which is connected with EMS. This tree cable (blue red black) are brooken ftom it.
So how to connect them right way?