The main factor determining the brightness and surface temperature of an average "main sequence" star is the stellar mass.In general, stars more massive than the Sun are hotter and brighter and less massive stars are cooler and less bright. Any good basic astronomy textbook will have much more information about stars.