They are not homophones—words that have the same sounds or spellings—and their meanings and uses are quite different. "Were" (rhymes with "fur") is a past form of the verb "to be." "We're" (rhymes with "fear") is a contraction of "we are." The adverb and conjunction "where" (rhymes with "hair") refers to a place.