What is it about the photo that draws you in? Without the brick here, what would this photo be? For most, this is very appealing because of the way the lines naturally draw your eye's attention to the door. The red color only highlights it more.
Check this one out. It's the side of a building with a rusty window. Most of us wouldn't even notice the potential for a photograph here. However, it is a perfect example of the use of lines. The window is obviously the subject, but it is emphasized by the lines of the tin siding that surrounds it. The lines help with creating the right amount of contrast, too. In the subject itself, we see both horizontal and vertical lines. About that...

When we see a photograph with strong vertical lines, we think power. Take, for example, skyscrapers and trees. To emphasize these lines, turn your camera and shoot in portrait mode. Think about it: if I photograph a skyscraper in landscape mode, we'll say that I can get about 15 floors in the frame. However, when I turn my camera for portrait mode, I can get about twice that.

Diagonal lines are also great to use in photography. A great example of this is sunlight. 
Diagonal lines are unique, and studies have actually been done that show that these lines naturally draw the our eyes toward the subject, in this case, the clouds.
Another type of line to use in your photographs is the S-line. It brings about a feeling of grace and peace.
This one just naturally draws you in. It is a comforting image; thanks to the perspective, we can see ourselves travelling down this road at a leisurely pace. S-lines (or curves) can also be used in abstract images, such as this one.

There are a lot of factors involved in composing your photographs, and proper use of lines is just one of them. Practice practice practice! Look back at some of your photos. See what "just works" and what doesn't, and try to figure out why. Happy photographing!