Fear of Heights

What happens if a bird has a fear of heights? Or even worse, a fear of flying? Turkeys, penguins and ostriches do not fly, they walk. So maybe evolutionarily they were driven by one of these fears. Or they're just not built to fly.