Neither means "not either (of two things)". So in your first sentence there is an indirect reference to two machines (you need more context here, because you won't find a statement like that all by itself without a referent somewhere), and both of the machines do not work. In your second sentence, two states are mentioned (hot and cold), and the person being spoken to is being told that it won't be cold and it won't be hot.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.