Hello and welcome to e health forum.
At your young age, chest pain could be just of musculoskeletal origin, or due to non conditioning of your body to physical activity.
If the condition is recurring, you might consult a doctor who can examine you and then determine the cause of your symptoms.