Just a little more detail about Lethe's response:
If the two lines are given in parametric form:
l1: x= at+ b, y= ct+ d, z= et+ f
l2: x= ms+ n, y= ps+ q, z= rs+ u
You have 6 equations for 5 unknowns (x, y, z, s, t) which, in general cannot be solved (because,in general, two lines do not intersect).
You can obviously reduce these to at+ b= ms+ n, ct+ d= ps+q, and
et+ f= rs+ u, 3 equations for 2 unknowns. If you can solve these then the two lines intersect so the lines are in the same plane. If you can't, then look at at the vectors in the direction of the lines: ai+ cj+ ek and mi+ pj+ rk. If they are parallel (a= im, c= ip, and e= ir for the same number i) then they lie in the same plane. In any other situation, they do not.
Of course, the "typical" situation for two lines in 3 space is that they do not lie in the same plane.
If the two lines do lie on the same plane then you can find the equation of that plane just as I am sure you have done before:
Take the cross product of the two vectors ai+ cj+ ek and mi+ pj+ rk to find a vector, Ai+ Bj+ Ck, normal to the plane and take either t=0 or s= 0 in the equations of one of the lines to find a point,(x0, y0, z0), on the plane.
You should already know, if you are doing problems like this, that the equation of the plane with normal vector Ai+ Bj+ Ck containing point (x0,y0,z0) is
A(x-x0)+ B(y-y0)+ C(z-z0)= 0.