There's a wiring diagram in
this post that should be applicable to your 06.
Does the rear washer pump work? If it doesn't then fuse #23 might be blown. That, I believe, would disable the wiper motor as well.
The most likely wiring problem is in the harness going from the car to the hatch. In the wiring diagram, it's the wiring that goes from connector D35 to the rear wiper motor. There's only four wires in that harness related to the wiper.
The harness connectors (including D35) are in the cargo area, right side, slightly below the "D" pillar. The cargo area right side trim panel might have to be removed to gain access to the connector. (The other ends of the related wires are at connector D43 to the wiper motor.)
If you suspect the wiper motor, it can be checked at connector D43. There should be continuity between pin 2 and body ground.