LOM (Letter of Motivation) is a personal letter where you explain your reasons for wanting to study in Germany. You also include your academic and career achievements and aspirations in this letter. You should also mention how the specific program at the German university aligns with these objectives. It is more personal.
SOP (Statement of Purpose) is a letter to outline your academic background, research interests, and professional aspirations. It is more academic.