Hooked up with someone for the first time

So during the summer, I had my first fling with a man. I really like him, but he doesnt want me ? We made things mostly about sex and now I'm wondering how I can change things ? I want to build a relationship :/