Understanding why we are the way we are in relationships can help us stop repeating the same bad relationships over and over.