It's possible that you are referring to agoraphobia, which is a type of anxiety disorder characterized by a fear of situations where escape might be difficult or help unavailable. People with agoraphobia may fear being in crowds, public transportation, open spaces, enclosed spaces, or being outside of their home alone.
If you are experiencing fear or anxiety related to specific situations, it's important to seek professional help from a therapist or counselor who can assess your symptoms and provide appropriate support.