Every stride lands you on one leg, and the hip muscles have to hold your pelvis level and drive you forward each time. When the load goes up faster than those muscles and tendons can adapt (a new plan, more miles, hills, a race build-up), the hip is often where it shows.
Most hip pain from running is that kind of overload, and it responds to the same things: easing the load for a while, building strength, and returning gradually. A smaller group of hip pain isn't a muscle or tendon problem at all. It comes from the lower back, or, less often, from the bone itself, and those need a different plan. The table below sorts them by where it hurts.
Running pain lower down has its own pages: knee pain after running, outside knee pain and the IT band, shin splints and heel pain after running.