You use they instead of 'he or she' to refer to a person without saying whether that person is a man or a woman. Some people think this use is incorrect.
You use they in expressions such as 'they say' or 'they call it' to refer to people in general when you are making general statements about what people say, think, or do.