What were vacuum tubes, and how did they work in first-generation computers

What were vacuum tubes, and how did they work in first-generation computers?

This question has not been answered yet.