When you have posted a diagram showing how everything is connected and the code you are trying to use we can very likely help.
It sounds like your code should all be in setup() and should be looping round checking for the switch to be on. Then when it is on doing the 15 second wait, then running the motor. Is that what you think you're doing? If so show us.
Steve