try to log in your yahoo mail. then retrieve it using forgot password. answer all the needed /required info. then thats it.. same with facebook. the password / link will send to your email to reset it.
Hope it helps ..
Cheers
Try mo i diagnose muna using other lappy or phone at i connect mo sa wifi mo pra malaman mo agad ung problem. Pag mabagal make sure na updated ung browser na gamit mo. also try to restart your pc /wifi modem
make sure na tama ung IP na nkukuha niya..
run> cmd > ipconfig /all
ping google.com -t if may reply
Try to use lan instead pag ayaw parin, then do restore sa previous na working xa..
tried and tested on my pc