A beam is a horizontal, or nearly horizontal, structural member that is capable of withstanding load primarily by resisting bending. It can also simply be an architectural element which is non-load bearing.
A lintel is a type of beam or horizontal piece of material over an opening (e.g. door, window).