If you have six wires, they will probably be marked U1-U2,V1-V2,W1-W2 in other words UVW are the three phases. If there is no markings use a multimeter to determine each seperate phase and mark the wires as above. If you connect your incoming cable to U1,V1 and W1. Connect U2,V2,W2 together, this will give you a star connected motor.
For Delta connection connect your incoming cable same as for star U1,V1,W1. Then connect U2 to V1, V2 to W1, and finally W2 to U1.
To prove this to yourself on a piece of paper draw as below
U1 0--------------------0 U2
V1 0--------------------0 V2
W1 0--------------------0 W2
and draw the connections as stated above and you will have the means to connect up motors for yourself.