Wheat flour is one of the most important foods in European , North American , Middle Eastern , Indian and North African cultures, and is the defining ingredient in most of their styles of breads and pastries .