Arduino Loop() function execute only once with WiFI Connection!

You really have to post your sketch so people can see what or if there is an issue.

Right now it could be anything so its better not to even try answer.
BTW if you post your code then use the code tags ( </> )