drawing lines anyone????

Does anyone know about how to draw lines?
I don’ know what I am doing wrong…

glBegin(GL_LINES);
glVertex(insertcoordinatehere);
glVertex(insertcoordinatehere);
glEnd();

Maybe you can tell us what you do, so we can say what’s wrong.