Depends what you are trying to say. Nr 1 if you received a gift and want to know you got it from thém.
Nr 2 if you want to find out who the owner of this thing is.
So sender vs owner. Both are possible. (Sender coúld work with the 2nd sentence too btw but owner doesn't work with the 1st)