Read compact general informations by Federal Office for Migration and Refugees: http://bit.ly/2co04ZJ
See very detailed informations about studying in Germany for people from abroad provided by the Federal Ministry of Education and Research here: http://bit.ly/2cnXpzp
Special informations for refugees who want to study in Germany: http://bit.ly/2cnXpzp
Extensive Informations for refugees who wish to study in Germany given by Euraxess Germany: http://bit.ly/2co2qba
All information ressources above are in English.
You also can look for a courses of study that combines practical work experience and study, so called dual study programs (combined study programs in German: "Duales Studium").
From my point of view it makes sense to ask a course guidance to help you to find out which possibilities you have. Contact persons for this can be found in special job centers or in a university
Mostly you don't have to pay if you want to study in Germany. But there are special schools or private universities that are not free. So first see what you want study and where you can do that. A course guidance will help you to find out.
Kind regards, Jan