They use scientific inquiry (if I understand correctly what is meant by this term: the method of conducting investigation, including hypothesis forming, experiment planning, etc).
Theory is used as a base for asking questions, for example the theory of gravity can help ask more detailed questions about how gravity works.