Hi! I broke your post out into its own thread so we can have a specific discussion about it.
Your code was a C0321 (the "C" is significant when other people come searching in the future), and it has to do with an encoder motor BRAKE function.
The encoder motor on the 4WD vehicles that use the NP226 transfer case (Trailblazer except for the SS, Envoy) have three functions, using 7 pins on their conenctor
1) The motor control itself
2) The position feedback sensor (the "encoder")
3) A solenoid brake that keeps the motor from moving inadvertently even if a TCCM fault tries to change modes to 4LO, which could cause very bad things to happen if it occurred at highway speeds.
So a fault on the brake function is what caused your code, and it could be either wiring from the TCCM down to the encoder motor, or a fault in the motor assembly itself. You should start by carefully inspecting the wiring down at the encoder motor, and replugging the connector a few times in case a contact is dirty. If you have a voltmeter, you could confirm all this by downloading the schematics we have on the site, or running a Google image search for "trailblazer tccm schematic". Of check Ebay for used encoder motors, which look like they have for a low price of $80 or best offer. Many sources for new ones, including a Dorman aftermarket replacement that can be less $$. Amazon, Ebay, Rockauto, local parts stores.