The "Modern Family" star speaks about the physical and emotional pain she endured, and how she overcame it.