This is a very commonly occurring problem in Washing Machines. I have personally experienced this. Usually what the problem is that the ‘Drain’ option is ON. So, cause of that, when you add the water, it just drains away.
Just turn the ‘Drain’ setting ‘OFF’ and the problem should be solved.
If it doesn’t, then please contact a technician or your trusted mechanic.