Hi, thanks for your question. This is a very common situation. If you have torn the frenulum, the skin that joins your foreskin to the tip of your penis, you should avoid sexual activity until the tear has healed. In most cases, the tear will get better without treatment. If you are concerned about the tear, please see your doctor or a health provider at an STI clinic. Once it has healed, you can try using a lubricant during sex to prevent the problem from happening again. In some cases, the tear may not heal properly and your penis may become torn again in the same place as the scar tissue is less stretchy than normal skin. If the tissue keeps getting torn, there is an operation called a frenuloplasty to loosen the frenulum that can be done. This should make having sex more comfortable and reduce the risk of the frenulum tearing again.
Let us know if this does not answer your question or if you have any more questions or concerns.