Hi, some things you should try:
-make sure your antivirus is not blocking the game, punkbuster or Origin from getting online.
-Do a repair install of the game in Origin (right click on the game's icon and choose 'repair'.)
-Run the game as ADMINISTRATOR (right click on the Bf3.exe file and choose this option in compatibility tab). Do the same with Origin.exe (its in your Origin program files folder)
-Uninstall the BATTLELOG plugins from Windows Control Panel. Then download the newest plugin from the Battlelog webpage.
-Reinstall Punkbuster (in the Battlefield 3 folder find pbsv.exe)
-Uninstall and Reinstall Origin. https://help.ea.com/article/manually-uninstalling-origin
-Update your graphics drivers (choose a clean install in the advanced install options)
Some of this things require a Pc restart. Try each of the in order and see if it helps.
Let me know how you get on.