I see that the other experts have already given you very good advice but I'd like to add a couple of comments in case you would like to start a masters in Electrical Engineering.
If you already have a BA, I suggest that you gather all the necessary documents (ex. high school diploma, Bachelor's certificate) and you apply directly as an international student to all German universities that offer your desired Master program before entering Germany, so you can then relocate to a specific city if you are accepted to a university. This is very important because, once you are registered as a refugee in one location, it's normally quite hard to relocate.
For more info on studying in Germany, I suggest you check the following websites that can guide you with your application and provide you with some details on scholarships:
You will find an overview on all institutions throughout Germany, that offer such a program. As the language level you need to have when entering the program differs from place to place, please contact the "Studienkolleg" you would like to do the program with. Some of them will also offer language courses aiming to prepare you for entering the program(s). There are also these you can look at:
www.daad.de is the website of the German Academic Exchange Service. DAAD offers varied information to those who want to study or research in Germany.
www.deutsch-uni.com is the German learner’s portal of Deutsch-Uni Online. If you want to learn German online, prepare for studies in Germany or for TestDaF, you will find German classes supervised by experienced tutors. Special courses teach German for special purposes and expert knowledge of selected disciplines, such as Engineering or Economics.
www.distributed-campus.org is the E-learning Portal of the Free University of Berlin. Distributed Campus prepares international students who plan to study at the Free University of Berlin for their stay in Berlin thoroughly – academically, linguistically and organisationally.
www.inobis.de is a portal for international study applicants. INOBIS contains two databases: the Zeugnis-Datenbank provides information about the assessment of foreign university entrance qualifications in Germany, and the Bewerbungscheckliste (application check list) informs about courses of study, departments and degrees at uni-assist universities. You can also apply directly to uni-assist universities.
www.sprachnachweis.de is an information page for international study applicants. Its focus is on a simple query which gives detailed and up-to-date information about the required language skills for each course offered by a German University.
www.studieren.de is Germany's leading study information portal. Applicants, students and graduates get an overview as well of all german study programs and colleges as important information about financing studies and job search. Internationally www.studieren.de is expanding to a paneuropean study guidance.
www.study-in-germany.de is a comprehensive information portal for international students, academics and researchers in Germany offered by Deutsche Welle. Study in Germany is published in German and English as well as six other languages.
www.uni-assist.de assists international study applicants with the application for admission to German universities. The online application service allows you to apply to more than 90 universities in Germany.
(all links and information is copied from here: https://www.testas.de/en/link_en.htm