Your working style depends on your organizational structure. The organizational structure defines your role and responsibilities and work culture. This culture includes work environment, reporting system, hierarchy, etc.
An organization can adapt to any structure as per their requirements. If they are dealing with the projects, they will choose a projectized organization. However, an organization dealing with operations will stick with a functional structure.
Every organizational structure has a different system.
In a projectized organizational structure, you report to the project manager. In a functional organizational structure, you report to a functional manager. In a matrix organizational structure, it depends.