It is possible to write the equation of the line in vector form as
\begin{equation*}
\mathbf{x}(t) = \mathbf{X} + t\mathbf{D}
\end{equation*}
where $\mathbf{X}$ is the vector from the origin to a point on the line and $\mathbf{D}$ is a vector parallel to the line. So consider a line through $(x_{1},y_{1},z_{1})$ and $(x_{2},y_{2},z_{2})$. Then you could take
\begin{equation*}
\mathbf{X}_{1} = x_{1}\hat{\boldsymbol{\imath}} + y_{1}\hat{\boldsymbol{\jmath}} + z_{1}\hat{\boldsymbol{k}}
\end{equation*}
and
\begin{equation*}
\mathbf{D}_{1} = (x_{2}-x_{1})\hat{\boldsymbol{\imath}} + (y_{2}-y_{1})\hat{\boldsymbol{\jmath}} + (z_{2}-z_{1})\hat{\boldsymbol{k}}.
\end{equation*}
so the line through $(x_{1},y_{1},z_{1})$ and $(x_{2},y_{2},z_{2})$ can be represented by the equation
\begin{equation*}
\mathbf{x}_{1}(t) = \mathbf{X}_{1} + t\mathbf{D}_{1}.
\end{equation*}
You can do the same thing with the two points you have on the second line and write its equation as $\mathbf{x}_{2}(t) = \mathbf{X}_{2} + t\mathbf{D}_{2}$.
Edit: The vectors $\hat{\boldsymbol{\imath}}$, $\hat{\boldsymbol{\jmath}}$, and $\hat{\boldsymbol{k}}$ are the usual unit vectors in the $x$-, $y$-, and $z$-directions:
\begin{equation*}
\hat{\boldsymbol{\imath}} = \left(\begin{array}{c}
1\\
0\\
0
\end{array}\right),\hspace{1pc} \hat{\boldsymbol{\jmath}} = \left(\begin{array}{c}
0\\
1\\
0
\end{array}\right),\hspace{1pc} \mbox{ and }\hspace{1pc} \hat{\boldsymbol{k}} = \left(\begin{array}{c}
0\\
0\\
1
\end{array}\right).
\end{equation*}
So in other words,
\begin{equation*}
\mathbf{X}_{1} = \left(\begin{array}{c}
x_{1}\\
y_{1}\\
z_{1}
\end{array}\right)\hspace{1pc} \mbox{ and }\hspace{1pc}\mathbf{D}_{1} = \left(\begin{array}{c}
x_{2}-x_{1}\\
y_{2}-y_{1}\\
z_{2}-z_{1}
\end{array}\right).
\end{equation*}