What is in bone that makes it so painful when they break?

Nerves.

Bones themselves do not contain any nerves, however the periosteum that covers them does. When a bone breaks, it will inevitably tear the periosteum. This is what causes the intense pain that is associated with broken bones.

Broken Bone - Related Articles