Is there an optimum amount of sets and reps when doing weights for fat burning and building strength and muscle?

For example, what's the difference between 5 sets of 4 reps, and 3 sets of 7 reps?