Girls go with who they see as got a great future ahead. If they finds a better one than you, got more money than you, they just gonna fucking moves on man.
If a girl dumped you, 99% it's your fault. So keep working on yourself man. Invest in yourself, Love yourself before you love someone else.