Both of these salts react with water. Sodium carbonate reacts with water, producing a strong alkali, sodium hydroxide and a weak acid, carbonic acid. Hence, the solution is alkaline:

Ammonium chloride reacts with water to produce ammonium hydroxide, a weak alkali and hydrochloric acid, a strong acid. Hence the solution is acidic:
