How do the people in the legislative branch get their job?

In the US and in many democratic nations, the officials within a legislative branch of government are normally elected by the people they serve.

They get elected by the people.