if it is unlocked, download the sprint stock ROM and run it while your phone is connected to your computer, follow the instructions. this will take it back to stock. you should be able to activate it online after that.
http://forum.ppcgeeks.com/showthread.php?t=91940
it is the last ROM listed on the first post. download it, then run the exe on your computer.