No internet connection after reformatting computer

Hi. I really need help. I tried to solve things myself and now I’m stuck. Some time ago, a virus infected my computer so I tried to remedy it without consulting an expert. Then when it failed, I tried to re-format my computer with instructions from the internet. Now, I could not connect to the internet. I am really at a loss. Please do help me.
