A header is a type of beam. So they're technically the same thing. However, even though a header is a beam it's not called a beam. When a beam is used above an wall opening it becomes a header.