Why does a fracture still hurts when it is healing? I understand the pain at the beginning - the bone is not in its place, there is a pressure against the nerves, also the swelling pushes the nerves etc. But why does it still hurt after several weeks, when the swelling is gone, the bone is more or less fixed? Is the cause of the pain mechanical, or chemical?
At the initial phases of the healing the broken ends are mobile (and this is time when it can be set and put into a cast).
At later stages soft callus than hard callus forms and now any movement will pull on the broken ends and stimulate the nerve endings: it hurts.
This also has the effect that the nearby muscles will spasm in an attempt to immobilize the bone. Another source of the pain can be that these muscles become tired and start to hurt as well.
The pain will continue until the two broken ends are completely welded together so there is no longer any movement that would stimulate those nerves.