People can do centuries on fixed gear, but unless all you ride is flat you'll do better with gears.
To get fast you need a base of endurance. That's also what you need to do a century. So I suggest that you follow a century training plan. Or just ride a lot.
Spin class can substitute for some training. You can do longer endurance rides on the weekends.