Break up the project.
First get the Arduino to open and close a relay in a steady pattern.
Then add an input button to toggle the relay.
Then figure out how you want to store whatever data it is you're monitoring (you don't mention anything at all about what's being monitored/measured)
The phone stuff sounds like you just want to use your phone to 'push a button'. You need to describe what your needs are. Will you be near the arduino and motor? How near? Or do you need to turn on a farm machine from the other side of your country?