Therefore means thus or consequently. “I am mad at you, therefore I want you to leave.”
Thereby means “in this manner” or “through the method.” “The police froze the gang’s bank accounts, thereby cutting of their access to money.” “She married a rich man, thereby avoiding the need to work.”