What Is Wrong With My Papillon??

I own a papillon have now for a year and he is a brat!! He gets into a mood and will go lay down and refuse to come out. He will pee on my floor even though he is trained and has been for a year now. He refuses to show me love but has no problem showing any stranger lots of love. Why does he do this and what should I do????? Please help me I am being very serious and do not want to get rid of him.