The time I'm most productive in the office is when I book myself into a meeting room and work on my own. Just find the open working environment too distracting otherwise to really get my head-down. Possibly because I've worked from home for part of the week for years now.

There are of course other good reasons to go into the office besides work so wouldn't really want to work from home permanently.