Hello, it may be either because of Tight Piriformis muscle, tight Iliotibial band or tight calf muscles. It's better to do some stretching exercises before sleeping, you will surely feel better with time. Sometimes, it happens that tight trapezius muscle spasm can cause the symptoms like someone is hitting on our back of head. Just keep yourself flexible enough to stay fit and healthy.
Next Steps
Send the pictures
Health Tips
Start stretching exercises