select your texture and click "to world" to put a tick in the box. This will align it to the face it is supposed to be aligned to "according to hammer" (probably your top face).
Alternatively and more recommended, select your top brush face and "alt" click you misalligned face, and then select that face and alt click the one on the side. This will align them all for you.