, it's pretty likely that your derailleur and/or derailleur hanger are bent.
SRAM has pretty great manuals @ service.sram.com if you know the model of your derailleur that should include cable routing.