motor wont stay running

post a diagram of the way it should be wired] if it runs for a few seconds then it would not be the box ? it runs till i leave go of the key starts eight up ?