It depends on what you use:
-static mesh -> make sure that you use a correct uv map
-bsp -> in the details panel you can find a button that is called “alignment”. There you have to choose something (e.g planar) + dont scale the brush, it’s better when you move the vertices in the bsp edit mode