What factors affect BMR or basal metabolic rate?

There are 3 components related to energy expenditure: BMR or basal metabolic rate, TEF or the thermic effect of food, and physical activity (which varies according to the individual).The first one, BMR can vary among people. What factors affect BMR? What percentage does it represent from the total 100% of energy expenditure?