Motor won’t stay running

It has fuel. Every time it shuts off as far as right back up soon as I pump it.