Well, it's hard to say. This doesn't sound like a migraine which can have a popping type sound mostly due to sensitivity. It sounds like it happened in reverse. Could you have possibly cracked your neck high up? Cavitation happens. And this may have in turn affected the muscles that are on your skull. We have many. And they tighten and that could feel like soreness and headache. No lasting effects from this events? Was it gone later?