It's definitely possible that your tomcat has fleas again despite the May treatment. Spot-on products usually work for four weeks, but depending on which product your vet gave you, the protection might have worn off by the end of July now. Fleas are stubborn and you don't always get rid of them on the first try, especially if your cat spends a lot of time outside. The spots you're describing (neck, behind the ears) are classic flea locations. If you look really closely, you should be able to see small black specks or the fleas themselves - that would be confirmation.
However, allergies can also cause that kind of itching. It could be food allergies or even an overreaction to pollen/dust in warm months like now in July. Allergies are often chronic and don't develop so suddenly, but it's possible. Another reason could be ear mites, especially if he's scratching a lot behind his ears.
My advice would be to go back to the vet soon and ask if another flea treatment is due. They can also tell you if it's something else. If it really is fleas again, I'd maybe try a different product this time or treat more frequently - some vets recommend every three weeks instead of four. In the meantime, you could wash his bedding more often and vacuum your apartment.