It depends on where the lawyer is employed, by whom, and their specialty. Government employed and public interest attorneys can earn modest salaries as low as $30k in parts of the country. On the other hand, partners in large law firms in New York and Los Angeles earn millions.
Solo attorneys, and those working out of firms, often charge by the hour. Depending on the type of work performed, fees can range anywhere from pro bono (free) to hundreds of dollars per hour.
The attorneys, however, do not usually get to keep all of their fees. Much of it goes to pay for overhead (i.e. office rent, utilities, employee salaries and benefits, etc.).