An erection is when the penis gets hard. When people with a penis are excited about sex blood rushes to the penis to make it hard.
Sometimes, erections happen even when someone with a penis is not thinking about sex, it’s simply the body sending blood to the penis.
When people with a vulva are excited about sex blood rushes to the clitoris and it becomes hard.