Hi, Welcome to Healthcaremagic!
Probably you had suffered from a muscle pull or rarely tear. Tears heal but you require rest, analgesics & muscle relaxants; sometimes there may be fibrosis
in injured area which in future may lead to loss of flexibility or some problem in dance. Its better to consult an orthopedic specialist ASAP for a timely evaluation.