You haven't told us if you want to keep the same spaces(as shown in Input_file) into your post or not. Considering if you have only 2 fields and you want to maintain the spaces as it is(though I tried hard to keep the space same), following may help you in same.
If your requirements are different than the shown post, please post complete details and expected output too into your next post.
EDIT: Adding non-one liner form of solution now on same.
Seems you have edited your post, so if you are trying to get number of fields from very first line(as it may be heading) and trying to put values of those fields which are having less number of fields as compare to heading, then following could do.
Let's see following is Input_file:
ame test test1 test2 test3 test4 test5
sam 1
liz 2
al
1
As you could see number of fields set by very first line to 7, similarly you could set number of fields too in case you don't want to take them from heading(very first line) too.
Your 2nd solution is better structured than your working solution.
awk 'BEGIN { FS=OFS="\t" } { for (i=1; i<=NF; i++) if ($i~/^ *$/) $i="." } 1' input
It treats space characters as being empty, unlike your last solution that checks for being empty
awk 'BEGIN { FS=OFS="\t" } { for (i=1; i<=NF; i++) if ($i=="") $i="." } 1' input
---------- Post updated at 15:45 ---------- Previous update was at 15:12 ----------
Don's sed solution, after replacing \t with ${T} and putting the code in double-quotes, so the shell can substitute each ${T} .
For general safety I put the braces and escaped the $ (both not really required here).