I'm sure you're looking for a crank. It runs through the frame and attaches to the chain-set and pedal arm on the other side. There ara a few types and it's not so easy to fit. My advice is to bring it to your local bike shop and let them do it.
I was quoted €30 fitted for one recently. As it happened it just needed tightening, so try that first!