Imagine you have three pieces of bread, and you want to make a sandwich. The bread slices are called the "semiconductors" and they're made of special materials called "doped silicon". One of the bread slices is called "n-type" because it has extra electrons, like a full lunchbox. The other two slices are p-type, because they have fewer electrons, like an empty lunchbox.
Now, take the n-type slice and put it between the p-type slices. This makes a sandwich! But it's not just any sandwich - it's a n–p–n transistor.
The n-type bread slice in the middle is like the "switch" that controls the flow of electricity. By adding a small amount of voltage to the base of the n-type slice, we can allow electricity to flow from the first p-type slice to the second. This creates a "current" that can be used to power things like lights or computers.
So, in short, a n–p–n transistor is like a sandwich made of three slices of bread that can control the flow of electricity. These are used in lots of electronic gadgets that we use every day.