Keep in mind the following
WARNING: This page does not describe the selected car, but rather 8 other vehicles, including the 2006 Volvo S80, 2005 Volvo S80, 2004 Volvo S80, 2003 Volvo S80, and 2002 Volvo S80. However, it is still accessible from the selected car via links, so may be relevant.
The secondary locking must always be open.
Inspect the locking tab/tabs on the terminal for damage and check that they are not pressed inward.
The cable terminal must be inserted from the housing's cable side.
Check against the wiring diagram that you have the correct cavity/position number.
Turn the cable terminal the right way up. Check against the other terminals.
When the cable terminal is inserted in the cavity a "click" is often heard when the primary locking engages.
Check that the cable terminal is firmly in place by pulling lightly on the cable.