I'm not sure what you are trying to say, but I'll reword it into a few sentences that an English speaker would understand.
"If your heart doesn't stay where it should, nowhere is home"
"If your heart isn't in the right place, nowhere is home".
"If your hear isn't in the proper harbor, you're not home".
It isn't correct to say "nowhere is housing"...it should say "home is nowhere" or "nowhere is home". It's also incorrect to say "if heart...". It should be "if the heart..." or "if your/her/his heart". You should also use "the" before "harbor". I hope this helps.