This video should give you a basic understanding of how the Sturmey Archer 5 speed works. It features the ball lock version of the hub which is the predecessor to the model you have there.
This video shows the design changes incorporated in the hub you have.
Note that these are not repair tutorials, but merely meant to show how they work.