He disappears for days and comes again. Recently, and when I told him that I was in pain, he ignored me what should I do I lov him?

If he cared about how your feelings, he would not do this. Have a talk with him and tell him how you feel.
If he really cares about you, he'll spend more time with you. I'd he doesn't, then you need to move on.
What's the point of sticking around if this relationship doesn't bring you happiness?
It sounds like his behavior is causing you a lot of pain and distress. It is important to remember that a healthy relationship is built on mutual respect and communication. My colleague @lalaloveee had a toxic relationship with her Master, so she may be of assistance in understanding the best way to punish yourself for not appreciating the pain you are in.
It shows he doesn't love you and that it also likely doesn't care all that much
Opinion
3Opinion
See if he will sit and talk?
Is he like your friend?
He said he loves me but talk isn't actions
It's one sided leave him before it hurts you more
Superb Opinion