I can't destroy blocks or build in my Minecraft server?

I just set up a Minecraft server and everything was working well. It's just a raw vanilla server and my buddies and I played on it for a while. Blowing stuff up, switching from creative mode to survival, opping and de-opping and basically everything you can do on a raw server. We didn't run into ANY problems the whole time.

I then decided to try and add bukkit and get some more commands in there but java was acting up and being a pain, so after all my efforts, I decided to just wipe everything and start clean. Shortly after starting the clean server, I hopped in and went to test it out. As soon as I spawned, I opped myself from the server console and changed my gamemode to creative.

I flew around a bit, changing the time and weather and such, then decided to change my gamemode back to survival. As soon as I did this, my player was unable to break any blocks or build anything besides destroy the one hit blocks like grass and flowers and mobs and such. I've switched back and forth between creative and survival and have had no luck. Only being able to break and destroy in creative mode.

I ran into this problem before actually and the only solution was to delete my world and start a new one. Although, I have found that this does not permanently fix the problem as I have run into it again. I'm really starting to get annoyed with it and have looked around for a solution but have not found anything usefull. I've oped myself, I've gone 500+ blocks away from spawn, I'm not finding any solutions.

Do game mode 0

(type in /gamemode 0 )

List your plugins that you have.

If you are near spawn, then you can't place blocks. If you are not, then do as Armadil says and I'll get back to you.