The fact that it starts and runs a few seconds and then shuts down makes it sound like it is being shut down as a protective measure.
Is the engine oil pressure coming up normally? Is the engine oil pressure switch opening once pressure builds?
Are there any warning lights or fault codes/alarms when the engine is started and shuts off?
Follow all Safety and Maintenance Procedures as illustrated in the Operation and Maintenance Manuals for your machine! Remember to click ACCEPT.