@miniashman
Try this, maybe it helps:
shutdown your pi, take the sd-card out, put it in a card-reader and plug it in a windows-PC. Copy an empty file called ssh (with no extension, take care your PC shows all extensions) and also a file named wpa_supplicant.conf into the root-directory of the SD-card
The file wpa_supplicant.conf needs the following content, of course with your credentials:
country=EN
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid=“thenameofyournetwork”
psk=“yourpassword”
key_mgmt=WPA-PSK
}
Put it back into your RPI and boot.
Thomas