I used to have a friend whose neck broke near the headstock. We tried numerous ways, from using epoxy resin and at the last resort nearly tried to nail both piece together. However we found out that there is no good way to join them together. The best way is to get a new neck.