If your scratching the rash, the fingernail bacteria is causing it to spread. This could have started from one single pimple and spread from scratching.
It could be anything, from bacterial infection to dermatitis. Without knowing what it looks like, not even a doctor could tell you what it is.