I cant catch any pokemon in Pokemon Ultra Moon

It might sound weird but my pokeballs dont work. After trying to catch Lunara and wasting around 100 ultra balls I realized that the ultra ball never moved once, so I decided to try catch something easyier. I cant even catch a level 4 inkay on one of the first roads into the ultra ball as it instantly escapes, the ultra ball doesnt even move once, not only ultra balls but all kinds of pokeballs. Any help how to fix that because I cant catch any pokemon.