Depends on what kind of line you want and what version of Word, but
maybe you need the Format > Borders & Shadings, which is part of
paragraph formatting.
Or maybe you want to insert a Drawing, namely a straight line? (Shift
while drawing it and it's constrained to horizontal or vertical [or 45
deg.?].)