A phrase is a section of a melody that functions as a musical unit. A phrase usually ends with a cadence. The following excerpt from a Bach menuet has two phrases:
Phrases are very often 4 or 8 bars long, but they can be shorter or longer.
See Phrases, Periods and Motives for more information.