Often the reason is in differential settlements, or shear failures due to horizontal loading (earthquakes,...). Retrofitting is often done by injections but first the cause must be removed.
Generally verticals cracks occurs due to uneven settlement of foundation. Horizontal cracks occurs because of mortar failure. Some times cracks occurs at corners of opening, in some cases it occurs due to expansion and contraction of wooden frames or due to shear failure. We can repair this by grouting but we have to remove the cause first.
In case of earthquakes, the repair process of diagonal shear cracks in masonry walls was tested in laboratory. See my paper at 14 IBBMAC, Sydney, 2008.
As said in the question, reasons for cracks in brick masonry can be several. Anyway the direction of the cracks can give indications for their interpretation, therefore a crack pattern survey reported on plan, prospects and sections of the building or structural element can give important indication. In case of seismic actions, the crack direction allows to distinguish between in plane and out of plane forces (e.g. inclined cracks indicate inplane forces). Special attention should be given to vertical cracks in some high rise structures (towers, pillars) subject to heavy weight. In this case also the position of the cracks (at the bottom pf the element or in the middle) can indicate a sort of creep phenomenon which can bring to collapse in a long range (long term behavior of masonry).