Whatever your crank is, there is a BB that it will work with. However, knowing what kind of threading your frame has in the BB shell will make your choosing easier too.
Chainring and cog: You'll want to get your chainring after your crank, and your cog after your hubs. Chain after both.