Pain during external rotation

Does anyone know why I might be experiencing pain during my external rotation during pitching