My guess would be you have a foundation issue. That can cause all kinds of problems. Would find the cause of the problem first and make sure any cracks you repair are cosmetic. If the brick wall has lost integrity or has become weakened you may need a professional to repair it correctly.