It sounds like what you experienced might have been a cold sore, also known as oral herpes. Cold sores can start as redness that develops into a small whitehead before eventually healing within a few days. They are caused by the herpes simplex virus and commonly appear on or around the lips.
Cold sores may not always itch or burn but can be slightly tender when pressed. If it was located on your lipline and matched this description, there's a chance it could have been a cold sore rather than just an ordinary pimple.
If you're unsure or concerned about any skin changes, including those in the mouth area, it's always good to consult with healthcare professionals for proper evaluation and advice on management.