There are two main ways to get Battlefield 3 on your PC. The first is the classic route: visit a video game store, buy a copy, and install it on your computer.
The second is downloading it directly from the publisher's official website or a digital storefront. Just be prepared for a lengthy download, since the game is quite large.