That pin you're holding, called a bucking bar, goes in the hole in the center of the sprocket. There should also be a ball bearing that goes in before the pin. It might still be in there, stuck in grease.
If the ball bearing is missing too you can replace it with one 5/16" or 8mm in diameter.
Lubricate all of those parts with a grease before reassembling.
Tom