Reading a PIR is quite simple. Driving a motor is not difficult. Remembering elapsed time is also simple, just think millis().
Please tell us exactly what PIR, motor and motor driver you are using and post your best attempt at a progam that does what you have described. Then we will have something to start helping with.
Steve