In quantum mechanics, particles are described by wave functions, which are mathematical entities that encode the probabilities of various properties of the particles. When we say that particles are "in the same state," it means that their wave functions are identical or can be described by the same mathematical function.
For bosons, particles that obey Bose-Einstein statistics, multiple particles can occupy the same quantum state simultaneously. This property is known as Bose-Einstein condensation