Depends if your pickaxe is bent (in which case Numorf in the Dwarf mine will fix it for cash) but if the head fell off, you can fix it yourself. Just find the head, grab it (before someone else does, it will soon become visible to other players if you are not quick!) and 'use' it with the handle.