control risk and substantive procedures, im thoroughly confused :(

I'm getting a little confused about this if control risk is high, we would not do test of controls and instead focus on substantive procedures. There are two types of substantive procedures: test of details and analytical procedures. Now which of these two would I use if control risk is high? The becker book says that to use test of details, I must be satisfied with internal control. Im thoroughly confused by this, can someone clarify?