Hun is a word that people will often use as a term of endearment. If the girl that called you hun was a family member or a girl that you have been friends with for a while then it would be likely that she would call you hun because she is showing that she cares about you.