Not all no-balls result in a free hit - only front-foot no-balls (where the bowler oversteps the crease) award a free hit. No-balls called for other reasons (high full toss, breaking stumps, etc.) don't give a free hit. The free hit rule applies only in limited overs formats (ODI and T20), not Test cricket.