If your visa application is rejected, look at the reason for rejection. See if you can reapply. Then, follow the steps the immigration authority tells you to.