I also think joining a club or team is better. I joined a running club early this year. Now, I am hooked to running. I am sure I won't enjoy or love running if I did not join the club. During training, I have a group of people running together, share technique, experience and chellenge each other.
However, working out in the gym also has benefit. Sometimes, I run in the gym as a self training to myself. I could be more focus on my form, speed, distance, etc.