When you try to start the engine and nothing happens it means that power isn’t getting through the ignition switch for some reason. The trouble could be due to a faulty connection clear back to and including the battery connections. Clean the battery connections and make sure they are snug tight, but not not over tight on the battery posts.
When the engine dies while running I would suspect a fuel issue as the most likely cause of the problem but there are a number of other possibilities.