I can't really say for sure but you may have strained your adductors. Or you may have pinched your hip flexor tendon. Or you may have strained the hip joint itself or injured the labrum of the hip joint. Hard to say. But if it's taking a long time to heal I would go see a PT (ie it's been more than 4 weeks and is still very sore).