Study of the algebraic structure of left braces and the Yang-Baxter equation