If someone is in a situation where they are being stubborn or refuse to cooperate with others, the expression "bang/knock their heads together" can be used to suggest that they need to start working together and stop disagreeing. The phrase implies that a physical confrontation is not necessary, but rather that the individuals need to start focusing on the task at hand and working together to achieve a common goal.