Shape-
Shape is an element of design. And the way something is formed.
For example a pyramid can be a three dimensional shape, but it can also be two dimensional.
Line-
A line is also an element of design.
For example a line is one dimensional and they are used to put shapes together by using multiple lines.