If a layer is locked, entities on that layer cannot be selected for editing.

Loack layers How to unlock a layer and select polylines.

Lock and unlock layers