What should I do if I'm only motivated by wanting to attract women?
Are you not getting what you want to achieve? Are you not able to have a healthy relationship with women?
I'm achieving the things in my life that I want except for relationships with women. I've got a good job, a nice car and lots of money, but my relationships aren't going well for me.
While it is good to be want to be successful, it isn't good to only use material success as a means to attract women. It is wrong to think that women are solely attracted to money and status in a partner. Rather than rely on external factors for motivation, try to find a source of intrinsic motivation that you can draw upon to succeed in your goals.
That's easier said than done. It's human nature to want to be with someone who can provide for you so I don't see why I shouldn't flaunt my success.
If you use material success to attract a partner, you will only attract women that want  to use and take advantage of you. They won't be there for the right reasons. That's why it's wrong.