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 joist is a type of beam (often secondary) used to support a floor or ceiling.